Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added more tests exercising the pyscript bridge. | Eric Lin | 2018-04-30 | 1 | -0/+1 |
| | |||||
* | Added some more comments for clarification. | Eric Lin | 2018-04-21 | 1 | -1/+1 |
| | |||||
* | Switched the default behavior in cmd2 for argparse commands to use the ↵ | Eric Lin | 2018-04-21 | 1 | -10/+1 |
| | | | | AutoCompleter by default. | ||||
* | Changed cmd2 to use autocompleter by default for all argparse commands. Not ↵ | Eric Lin | 2018-04-20 | 1 | -4/+11 |
| | | | | all tests are passing yet. | ||||
* | Started removing dependency on six | Todd Leonhardt | 2018-04-15 | 1 | -1/+1 |
| | | | | | | | Removed all dependency on six other than for six.moves.input Also: - Started removing code branches which were for Python 2 support | ||||
* | Simplified how to add tab completion to a subcommand | Kevin Van Brunt | 2018-03-28 | 1 | -6/+11 |
| | |||||
* | Removed unused imports | Kevin Van Brunt | 2018-03-25 | 1 | -2/+0 |
| | |||||
* | Made subcommand specific completion work with Python 2 in the examples | Kevin Van Brunt | 2018-03-24 | 1 | -6/+4 |
| | |||||
* | Fixed check for whether a subcommand was entered | Kevin Van Brunt | 2018-03-23 | 1 | -2/+3 |
| | |||||
* | Added a default signal handler for SIGINT (Ctrl-C) | Todd Leonhardt | 2018-03-19 | 1 | -3/+3 |
| | | | | | | | | | | Added a default signal handler for SIGINT that does the following: - Terminates a pipe process if one exists - Raises a KeyboardInterrupt for other parts othe code to catch Also: - Changed the default value for quit_on_sigint to False - Modified the way the subcommand functions are called in subcommand.py (unrelated to rest of commit) | ||||
* | Fix unit tests and example | Todd Leonhardt | 2018-03-16 | 1 | -2/+5 |
| | | | | | | functools.partialmethod() was added in Python 3.4, so it can't be used in Python 2.7. - Modified the code to skip trying to use it for Python 2.7 - Skip the two unit tests which test its usage on Python 2.7 | ||||
* | Added unit tests and examples for tab completion of subcommands | Kevin Van Brunt | 2018-03-16 | 1 | -7/+27 |
| | |||||
* | No longer need to manually specify subcommand names for tab completion | Kevin Van Brunt | 2018-03-14 | 1 | -4/+1 |
| | |||||
* | Fixed typo | Kevin Van Brunt | 2018-03-01 | 1 | -1/+1 |
| | |||||
* | Renamed @with_argument_parser decorator to @with_argparser | Todd Leonhardt | 2018-01-21 | 1 | -6/+6 |
| | | | | | Also: - Reanamed foo and bar subcommand methods to base_foo and base_bar | ||||
* | Added unit tests for sub-commands | Todd Leonhardt | 2018-01-20 | 1 | -2/+2 |
| | |||||
* | Tab-completion of subcommand names is now supported | Todd Leonhardt | 2018-01-20 | 1 | -1/+4 |
| | |||||
* | Just improved a few comments in the subcommands.py example | Todd Leonhardt | 2018-01-20 | 1 | -3/+3 |
| | |||||
* | Added support for argparse sub-commands when using cmd2 decorators | Todd Leonhardt | 2018-01-20 | 1 | -0/+58 |
Modified the do_help() method to behave differently for methods which have been decorated with an argparse ArgumentParser. This is so that help will properly deal with sub-command help. Suppose you have a base command "base" which has two sub-commands, "foo" and "bar". Then "help base" will provide very different help text than "help base foo". Slightly tweaked the two argparse decorators to set an attribute in the decorated function's dictionary so that the do_help method can know which functions have an ArgumentParser and which do not. Added a "subcommands.py" example for demonstrating how to create and use subcommands based on argparse and the cmd2 @with_argument_parser decorator. |