1. 24 May, 2020 3 commits
  2. 23 May, 2020 3 commits
  3. 09 May, 2020 3 commits
  4. 05 May, 2020 1 commit
  5. 04 May, 2020 3 commits
  6. 03 May, 2020 2 commits
    • ∞'s avatar
      Argument help · 7a234598
      authored
      Require the nice docstring_parser package which supports a bunch of
      formats.
      7a234598
    • ∞'s avatar
      Make help a proper command · d3af208a
      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
      d3af208a
  7. 29 Apr, 2020 2 commits
    • ∞'s avatar
      Multiple aliases, negates, and POSIX Style · 225a94c5
      authored
      Multiple aliases allow to specify a list of aliases in the alias
      argument.
      
      Same for the negate argument.
      
      Also, added a POSIX feature that may be enabled at the Command or Group
      level.
      
      If a non-bool alias starts with a dash, then a space may replace the
      equal: `-a=b` is same as `-a b`
      225a94c5
    • ∞'s avatar
      Brushed up high level API with powerful decorators · eec45f2c
      authored
      BC BREAK: Group.cmd was renamed to Group.add because Group.cmd is now a
      decorator
      
      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.
      eec45f2c
  8. 27 Apr, 2020 5 commits
    • ∞'s avatar
      Add autotest again · 1438c33f
      authored
      1438c33f
    • ∞'s avatar
      Float support · 5c7649e0
      authored
      5c7649e0
    • ∞'s avatar
      Make sure we always get kwargs · e8414311
      authored
      e8414311
    • ∞'s avatar
      ad40d316
    • ∞'s avatar
      Forgot that console_script would sys.exit with the callable result · e46c9bbe
      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:
      
          sys.exit(
              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
        foo:bar.entry_point
      
      - As such, EntryPoint.entry_point is in charge of
        __call__(*sys.argv[1:])
      
      - 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.
      e46c9bbe
  9. 26 Apr, 2020 6 commits
  10. 21 Apr, 2020 1 commit
  11. 18 Apr, 2020 1 commit
  12. 01 Apr, 2020 2 commits
  13. 29 Feb, 2020 1 commit
  14. 16 Feb, 2020 2 commits
  15. 15 Feb, 2020 1 commit
  16. 02 Oct, 2019 1 commit
  17. 23 Sep, 2019 1 commit
  18. 08 Jul, 2019 1 commit
  19. 09 May, 2019 1 commit