Skip to content

Commit

Permalink
Add new command class framework for easier testing (#17851)
Browse files Browse the repository at this point in the history
* Add new command class framework for easier testing

* Add better test coverage

* Surface exception message

* textwrap.dedent

* remove unnecessary list

* Remove type check

* helper attribute variable name

* Rename helper attribute

* Simplify and statement

* Do some de-nesting

* Take default suggestion

* Add a __call__ method to the command parser

* subclass -> member

* Remove requirement that requied=False on optionals

* remove useless is_command_option

* Use global 'register' for special types

* Use a class for metadata optiona args

* Revert option args to class
  • Loading branch information
Quexington committed Apr 24, 2024
1 parent 698455e commit 1821d6b
Show file tree
Hide file tree
Showing 2 changed files with 715 additions and 0 deletions.
Loading

0 comments on commit 1821d6b

Please sign in to comment.