1. 02 Aug, 2020 4 commits
  2. 30 May, 2020 5 commits
  3. 24 May, 2020 4 commits
  4. 23 May, 2020 3 commits
  5. 09 May, 2020 3 commits
  6. 05 May, 2020 1 commit
  7. 04 May, 2020 3 commits
  8. 03 May, 2020 2 commits
    • jpic ∞'s avatar
      Argument help · 7a234598
      jpic ∞ authored
      Require the nice docstring_parser package which supports a bunch of
    • jpic ∞'s avatar
      Make help a proper command · d3af208a
      jpic ∞ authored
      - recursive Group.load()
      - preventing from importing stuff from above level
      - preventing recursive same-level imports
      - rely purely on the help command in cli2.cli
      - un-needed trailing whitespaces removed from output
  9. 29 Apr, 2020 2 commits
    • jpic ∞'s avatar
      Multiple aliases, negates, and POSIX Style · 225a94c5
      jpic ∞ authored
      Multiple aliases allow to specify a list of aliases in the alias
      Same for the negate argument.
      Also, added a POSIX feature that may be enabled at the Command or Group
      If a non-bool alias starts with a dash, then a space may replace the
      equal: `-a=b` is same as `-a b`
    • jpic ∞'s avatar
      Brushed up high level API with powerful decorators · eec45f2c
      jpic ∞ authored
      BC BREAK: Group.cmd was renamed to Group.add because Group.cmd is now a
      Decorators added:
      - cli2.cmd
      - cli2.arg
      - Group.cmd
      - Group.arg
      - Command.cmd
      Possibility to change the class of a Command or Argument was also added.
  10. 27 Apr, 2020 5 commits
    • jpic ∞'s avatar
      Add autotest again · 1438c33f
      jpic ∞ authored
    • jpic ∞'s avatar
      Float support · 5c7649e0
      jpic ∞ authored
    • jpic ∞'s avatar
      Make sure we always get kwargs · e8414311
      jpic ∞ authored
    • jpic ∞'s avatar
    • jpic ∞'s avatar
      Forgot that console_script would sys.exit with the callable result · e46c9bbe
      jpic ∞ authored
      The implementation of console_script really is **not** meant to be
      compatible with usual python callables, the script it generates
      **requires** the callable function to return an exit code.
      This is what a generated console_script looks like:
              load_entry_point('cli2', 'console_scripts', 'cli2')()
      As such, this commit introduces the following changes:
      - Both now inherit from the new EntryPoint class which just defines an
        entry_point method that you can use in console_scripts (see README)
      - You must change your console_scripts from foo:bar to
      - As such, EntryPoint.entry_point is in charge of
      - Command and Group __call__ now always take *argv, still return the
        target callable result since that's now possible, which makes the test
        code even nicer !
      - It was decided that if you want to exit with non-0, then either raise
        an Exception (duh!) either call sys.exit(1) yourself.
  11. 26 Apr, 2020 6 commits
  12. 21 Apr, 2020 1 commit
  13. 18 Apr, 2020 1 commit