Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Environmental Utility #272

Open
wants to merge 55 commits into
base: master
Choose a base branch
from

Commits on Nov 7, 2018

  1. Implementing Environmental Utility

    # Environmental Operations
    
    ## Usage
    
    First, ensure the `PerfectLib` is imported in your Swift file:
    
    ``` swift
    import PerfectLib
    ```
    You are now able to use the `Env` class to operate the environmental variables
    
    ### Set
    
    - Single Variable Setting:
    
    This statement is equal to bash command "export foo=bar"
    
    ``` swift
    Env.set("foo", value: "bar")
    ```
    
    - Group Setting:
    
    It is also possible to set a group of variables in a dictionary style:
    
    ``` swift
    Env.set(["foo":"bar", "koo":"kar"])
    // the result is identically the same as "export foo=bar && export koo=kar"
    ```
    
    ### Get
    
    - Single variable query:
    
    ``` swift
    guard let foo = Env.get("foo") else {
    	// there is no such a variable
    }
    ```
    
    - Single variable query with a default value:
    
    ``` swift
    guard let foo = Env.get("foo", defaultValue: "bar") else {
    	// there is no such a variable even with a default value??
    }
    ```
    
    - Query all system variables:
    
    ``` swift
    let all = Env.get()
    // the result of all is a dictionary [String: String]
    ```
    
    ### Delete
    
    - Delete an environmental variable:
    
    ``` swift
    Env.del("foo")
    ```
    RockfordWei committed Nov 7, 2018
    Configuration menu
    Copy the full SHA
    e4d43ad View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2020

  1. Configuration menu
    Copy the full SHA
    f77dd77 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d6d581d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    52d396f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3fda2a6 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2021

  1. Configuration menu
    Copy the full SHA
    85bc2e8 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. Configuration menu
    Copy the full SHA
    4c2aabe View commit details
    Browse the repository at this point in the history
  2. version sync.

    RockfordWei committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    8b6ed74 View commit details
    Browse the repository at this point in the history
  3. fix project name issue

    RockfordWei committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    7a32069 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6e97a95 View commit details
    Browse the repository at this point in the history
  5. cleaning up

    RockfordWei committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    1006008 View commit details
    Browse the repository at this point in the history
  6. rename the library

    RockfordWei committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    259947d View commit details
    Browse the repository at this point in the history
  7. adding runnable

    RockfordWei committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    7940981 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0c266a7 View commit details
    Browse the repository at this point in the history
  9. adding demo

    RockfordWei committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    fdd26cc View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7397f49 View commit details
    Browse the repository at this point in the history
  11. auth.

    RockfordWei committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    91eec70 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2022

  1. linting.

    RockfordWei committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    bd8d3d1 View commit details
    Browse the repository at this point in the history
  2. adding build status

    RockfordWei committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    526a419 View commit details
    Browse the repository at this point in the history
  3. Update README.md

    RockfordWei committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    7f1dfc0 View commit details
    Browse the repository at this point in the history
  4. cleaning up readme

    RockfordWei committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    39f0242 View commit details
    Browse the repository at this point in the history
  5. Update README.md

    RockfordWei committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    fe5479e View commit details
    Browse the repository at this point in the history
  6. cleaning up

    RockfordWei committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    d29d752 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2022

  1. Configuration menu
    Copy the full SHA
    cd8c49c View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2022

  1. Configuration menu
    Copy the full SHA
    159d209 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2022

  1. Configuration menu
    Copy the full SHA
    70a77ff View commit details
    Browse the repository at this point in the history
  2. Nonce.

    RockfordWei committed Jun 27, 2022
    Configuration menu
    Copy the full SHA
    a03a65f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d5d8e8 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2022

  1. applying swift 5.4

    RockfordWei committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    252a222 View commit details
    Browse the repository at this point in the history
  2. tested on macOS.

    RockfordWei committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    972a7a5 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #1 from RockfordWei/dev-swift-5-3

    Enabling Swift 5.4
    RockfordWei committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    a8a57e7 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2022

  1. adding the web socket

    RockfordWei committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    4237c07 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. Configuration menu
    Copy the full SHA
    22e5df9 View commit details
    Browse the repository at this point in the history
  2. dev snapshot

    RockfordWei committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    3d20052 View commit details
    Browse the repository at this point in the history
  3. account registration.

    RockfordWei committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    e12fd3a View commit details
    Browse the repository at this point in the history
  4. sign in.

    RockfordWei committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    0d7b34a View commit details
    Browse the repository at this point in the history
  5. cleaning up

    RockfordWei committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    8261bb4 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. introducing one-time code

    RockfordWei committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    0099e9e View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2022

  1. Configuration menu
    Copy the full SHA
    f7f186e View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2022

  1. Configuration menu
    Copy the full SHA
    2baed19 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2022

  1. Configuration menu
    Copy the full SHA
    e1d9ecd View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2022

  1. Configuration menu
    Copy the full SHA
    1b4ddb5 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. clear all warnings.

    RockyCognizant committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    4d578a4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2 from RockyCognizant/master

    clear all warnings.
    RockfordWei committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    e93a4a2 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. Linux 5.8

    RockfordWei committed Apr 27, 2023
    Configuration menu
    Copy the full SHA
    a33126b View commit details
    Browse the repository at this point in the history

Commits on May 29, 2023

  1. suppressing C warnings.

    RockfordWei committed May 29, 2023
    Configuration menu
    Copy the full SHA
    d0dfb66 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2023

  1. Configuration menu
    Copy the full SHA
    7726549 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. Configuration menu
    Copy the full SHA
    7b82b4a View commit details
    Browse the repository at this point in the history
  2. fixing the socket issue

    RockfordWei committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    224e039 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #3 from RockfordWei/dev-async

    Dev async
    RockfordWei committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    abfc248 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2023

  1. gm

    RockyCognizant committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    f719093 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f55811 View commit details
    Browse the repository at this point in the history
  3. cleaning up

    RockfordWei committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    70935e5 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2024

  1. fixing critical warnings

    RockfordWei committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    8af193f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    65439bb View commit details
    Browse the repository at this point in the history