Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replaced some pexcept() calls with perror(). | Kevin Van Brunt | 2021-04-02 | 2 | -3/+3 |
| | | | | | | Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage. | ||||
* | Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy. | Kevin Van Brunt | 2021-03-30 | 2 | -69/+31 |
| | | | | | | | | | | Added include_py keyword parameter to cmd2.Cmd.__init__(). If False, then the py command will not be available. Removed ability to run Python commands from the command line with py. Made banners and exit messages of Python and IPython consistent. Changed utils.is_text_file() to raise OSError if file cannot be read. | ||||
* | Removed ipy's access to the CLI's globals() dictionary | Kevin Van Brunt | 2021-03-24 | 1 | -9/+4 |
| | |||||
* | ipy command now includes all of self.py_locals in the IPython environment | Kevin Van Brunt | 2021-03-24 | 1 | -13/+11 |
| | |||||
* | No longer using -1 as an exit codeexit_code | Kevin Van Brunt | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | onecmd_plus_hooks() now sets self.exit_code when a SystemExit handled | Kevin Van Brunt | 2021-03-23 | 1 | -0/+3 |
| | |||||
* | Deprecate Python 3.5 | Todd Leonhardt | 2021-02-20 | 1 | -2/+5 |
| | |||||
* | Merge branch 'master' into 2.02.0 | Todd Leonhardt | 2021-02-14 | 1 | -1/+1 |
|\ | |||||
| * | Update modular_commands.rst | Kory Gill | 2021-02-13 | 1 | -1/+1 |
| | | | | | | Minor fix to use cmd2 intead of cmd in example text. | ||||
* | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2021-01-29 | 3 | -3/+12 |
|\ \ | |/ | |||||
| * | Updated documentationmisc | Kevin Van Brunt | 2021-01-29 | 1 | -0/+9 |
| | | |||||
| * | Merge branch 'master' into pr/docs/md/brokenlink | Todd Leonhardt | 2021-01-28 | 1 | -2/+2 |
| |\ | |||||
| | * | Fix doc in docs/features/commands.rst | Kevin "Tristate Tom" Weiss | 2021-01-28 | 1 | -2/+2 |
| | | | | | | | | | | | | finis should be finish. A missing double quote (") for the docstring in the `do_bail` example makes formatting incorrect. | ||||
| * | | docs/features/modular_commands: fix broken link | Kevin "Tristate Tom" Weiss | 2021-01-28 | 1 | -1/+1 |
| |/ | | | | | | | | | | | | | | | | | I guess the examples structure has changed since the docs. I suggest changing the broken link: https://github.com/python-cmd2/cmd2/tree/master/plugins/command_sets/examples to https://github.com/python-cmd2/cmd2/tree/master/examples/modular_commands Maybe also hiding the full link is nice. | ||||
* | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2021-01-22 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Fix wrong superclass in doc | Kilian | 2021-01-02 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'master' into 2.0 | Todd Leonhardt | 2020-11-11 | 3 | -14/+11 |
|\ \ | |/ | | | | | | | # Conflicts: # CHANGELOG.md | ||||
| * | Replace with_argparser_and_unknown_args in docs | Kyle King | 2020-11-08 | 1 | -11/+8 |
| | | |||||
| * | Use set --verbose instead of -v in docs | Kyle King | 2020-10-31 | 1 | -2/+2 |
| | | |||||
| * | Fixed error in set --long, which should be set -v | Kyle King | 2020-10-31 | 1 | -2/+2 |
| | | | | | | | | | | (Cmd) set --long Usage: set [-h] [-v] [param] [value] Error: unrecognized arguments: --long | ||||
| * | typo | Stratos Gerakakis | 2020-10-10 | 1 | -1/+1 |
| | | |||||
* | | Added section to completion docs about read_input() function | Kevin Van Brunt | 2020-09-09 | 1 | -0/+12 |
| | | |||||
* | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-09 | 1 | -9/+10 |
|\ \ | |/ | |||||
| * | Updated documentation about set command | Kevin Van Brunt | 2020-09-09 | 1 | -9/+10 |
| | | |||||
* | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-03 | 1 | -6/+34 |
|\ \ | |/ | |||||
| * | Fixed type hints in example code1.3.9 | Kevin Van Brunt | 2020-09-03 | 1 | -1/+1 |
| | | |||||
| * | Documented CommandSet event handlers | Kevin Van Brunt | 2020-09-03 | 1 | -1/+29 |
| | | |||||
| * | Updated docs | Kevin Van Brunt | 2020-09-01 | 1 | -4/+4 |
| | | |||||
* | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-28 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵ | Kevin Van Brunt | 2020-08-27 | 1 | -2/+2 |
| | | | | | | | | | | | | display help when called with -h/--help. 'add_help=False' no longer has to be passed to parsers used in @as_subcommand_to decorator. | ||||
* | | Removed Namespace.__statement__ | Kevin Van Brunt | 2020-08-27 | 1 | -6/+2 |
| | | |||||
* | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-27 | 2 | -10/+12 |
|\ \ | |/ | |||||
| * | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵ | Kevin Van Brunt | 2020-08-26 | 2 | -10/+12 |
| | | | | | | | | | | | | | | are now Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it easy to filter out which attributes in an argparse.Namespace were added by cmd2. | ||||
* | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-25 | 1 | -1/+17 |
|\ \ | |/ | |||||
| * | Updated change log and docs for release1.3.5 | Kevin Van Brunt | 2020-08-25 | 1 | -0/+15 |
| | | |||||
| * | Fixed RecursionError when printing an argparse.Namespace caused by custom ↵ | Kevin Van Brunt | 2020-08-25 | 1 | -1/+2 |
| | | | | | | | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute | ||||
* | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-08-20 | 2 | -0/+4 |
|\ \ | |/ | |||||
| * | Updated documentation with more explicit discussions on testing | Eric Lin | 2020-08-20 | 2 | -0/+4 |
| | | | | | | | | Added unit test to verify command name validation updates. | ||||
* | | Replaced choices_function / choices_method with choices_provider. | Kevin Van Brunt | 2020-08-13 | 1 | -10/+10 |
|/ | | | | | | | | | Replaced completer_function / completer_method with completer. ArgparseCompleter now always passes cmd2.Cmd or CommandSet instance as the self argument to choices_provider and completer functions. Moved basic_complete from utils into cmd2.Cmd class. Moved CompletionError to exceptions.py | ||||
* | Breaking change: Removed cmd2 app as a required second parameter to | Eric Lin | 2020-08-12 | 1 | -34/+35 |
| | | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set. | ||||
* | Verify that a completer function is defined in a CommandSet before | Eric Lin | 2020-08-06 | 1 | -1/+2 |
| | | | | | | | | | | passing it a CommandSet instance. Search for a CommandSet instance that matches the completer's parent class type.` Resolves Issue #967 Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation | ||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 1 | -1/+1 |
| | | | | implementation as an option to with_argparser instead. | ||||
* | Minor formatting fixes. Injecting a function into namespace objects before ↵ | Eric Lin | 2020-08-04 | 1 | -3/+3 |
| | | | | passing to command handlers to access sub-command handlers | ||||
* | Fix a couple doc8 warnings | Todd Leonhardt | 2020-08-04 | 1 | -5/+7 |
| | |||||
* | Suggested PR Fixes. | Eric Lin | 2020-08-04 | 1 | -5/+5 |
| | | | | | sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator. | ||||
* | Adds support for injectable subcommands as part of CommandSet | Eric Lin | 2020-08-04 | 1 | -0/+126 |
| | | | | | | load/unload. Updated examples and documentation to include discussion of injectable sub-commands. | ||||
* | updated imports | Eric Lin | 2020-08-04 | 3 | -0/+214 |
| | | | | Added additional documentation | ||||
* | Fixed hook documentation | Kevin Van Brunt | 2020-07-17 | 1 | -9/+9 |
| | |||||
* | Fixed command finalization example | Kevin Van Brunt | 2020-07-07 | 1 | -1/+1 |
| | |||||
* | Move line that seemed out of place at the very end to before the "advanced" ↵ | Todd Leonhardt | 2020-06-27 | 1 | -3/+3 |
| | | | | section |