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

Add async custom processing support. Add chainArgParserCalls() for configuration. Additionally await thenable implicit and default option values and thenable default argument values #1915

Closed
wants to merge 31 commits into from

Commits on Jul 25, 2023

  1. Add thenable function

    Co-authored-by: John Gee <john@ruru.gen.nz>
    aweebit and shadowspawn committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    2c6bcf4 View commit details
    Browse the repository at this point in the history
  2. Chain parseArg calls when parseAsync() is called

    The behavior can be configured via chainArgParserCalls()
    aweebit committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    9f292ad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d1ac0cd View commit details
    Browse the repository at this point in the history
  4. Await thenable option and argument values when parseAsync() is called

    The behavior can be configured via await()
    
    Co-authored-by: John Gee <john@ruru.gen.nz>
    aweebit and shadowspawn committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    2e7ccd1 View commit details
    Browse the repository at this point in the history
  5. Leave argument variations test untouched

    Possible since undefined properties are not checked
    aweebit committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    2d0c78f View commit details
    Browse the repository at this point in the history
  6. Remove redundant checkForUnknownOptions() call

    Co-authored-by: John Gee <john@ruru.gen.nz>
    aweebit and shadowspawn committed Jul 25, 2023
    Configuration menu
    Copy the full SHA
    905dac0 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. Rework _parseArg()

    aweebit committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    dacdde0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b64f298 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    254865c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e66eda5 View commit details
    Browse the repository at this point in the history
  5. Position _parseArg() better

    aweebit committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    fb48134 View commit details
    Browse the repository at this point in the history
  6. Inherit _asyncParsing. Do not unset it and _shouldAwait

    This is in accordance with how other properties containing information
    about the last parse call such as args & processedArgs do not get unset.
    Consistency in how repeated parse calls are handled could be improved by
    resolving tj#1916.
    aweebit committed Jul 26, 2023
    Configuration menu
    Copy the full SHA
    c34a839 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4d65c6c View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2023

  1. Configuration menu
    Copy the full SHA
    679bcb5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ade5f95 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d5799cb View commit details
    Browse the repository at this point in the history
  4. Fix linting errors

    aweebit committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    f5a0557 View commit details
    Browse the repository at this point in the history
  5. Forbid parse() usage with async calls

    Better than having to deal with unhandled rejections.
    aweebit committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    ea25170 View commit details
    Browse the repository at this point in the history
  6. Remove await configuration and unnecessary chain mode

    The simplification is possible now since async calls are forbidden in
    parse().
    aweebit committed Jul 27, 2023
    Configuration menu
    Copy the full SHA
    b9643bc View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Configuration menu
    Copy the full SHA
    385fe48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9dcc57 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3e0e305 View commit details
    Browse the repository at this point in the history
  4. Update life cycle description

    aweebit committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    608d91c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    249a0c6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bf7e096 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2023

  1. Configuration menu
    Copy the full SHA
    6858bdf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1cf9fed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    aa6f7c9 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2023

  1. Fix linting error

    aweebit committed Jul 30, 2023
    Configuration menu
    Copy the full SHA
    9d6cee0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d21112 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. Remove NODE_ENV check

    Motivation: tj#1955
    aweebit committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    cb8c30b View commit details
    Browse the repository at this point in the history