summaryrefslogtreecommitdiff
path: root/docs/features
Commit message (Collapse)AuthorAgeFilesLines
* Updated documentationKevin Van Brunt2021-08-231-1/+1
|
* set command output now uses SimpleTable.Kevin Van Brunt2021-08-192-14/+20
| | | | | | | Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show.
* Updated docsKevin Van Brunt2021-06-252-1/+2
|
* Updated all examples to use Cmd2ArgumentParser instead of ↵Kevin Van Brunt2021-06-171-16/+11
| | | | | | argparse.ArgumentParser. This is best practice for consistency of appearance between built-in and custom commands.
* Fixed spelling in docKevin Van Brunt2021-06-141-1/+1
|
* Updated documentation about persistent history filesKevin Van Brunt2021-06-141-5/+4
|
* Updated documentation. Added support for calling cmd2.Cmd.run_editor() with ↵Kevin Van Brunt2021-05-251-2/+1
| | | | no argument.
* Fixed allow_redirection documentationKevin Van Brunt2021-05-171-0/+1
|
* Removed cmd2.Cmd.quit_on_sigint.Kevin Van Brunt2021-04-302-20/+0
|
* Renamed silent_startup_script to silence_startup_script for clarityKevin Van Brunt2021-04-281-2/+2
|
* Replaced some pexcept() calls with perror().Kevin Van Brunt2021-04-022-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 Brunt2021-03-302-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() dictionaryKevin Van Brunt2021-03-241-9/+4
|
* ipy command now includes all of self.py_locals in the IPython environmentKevin Van Brunt2021-03-241-13/+11
|
* No longer using -1 as an exit codeexit_codeKevin Van Brunt2021-03-231-1/+1
|
* onecmd_plus_hooks() now sets self.exit_code when a SystemExit handledKevin Van Brunt2021-03-231-0/+3
|
* Deprecate Python 3.5Todd Leonhardt2021-02-201-2/+5
|
* Merge branch 'master' into 2.02.0Todd Leonhardt2021-02-141-1/+1
|\
| * Update modular_commands.rstKory Gill2021-02-131-1/+1
| | | | | | Minor fix to use cmd2 intead of cmd in example text.
* | Merge branch 'master' into 2.0Kevin Van Brunt2021-01-293-3/+12
|\ \ | |/
| * Updated documentationmiscKevin Van Brunt2021-01-291-0/+9
| |
| * Merge branch 'master' into pr/docs/md/brokenlinkTodd Leonhardt2021-01-281-2/+2
| |\
| | * Fix doc in docs/features/commands.rstKevin "Tristate Tom" Weiss2021-01-281-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 linkKevin "Tristate Tom" Weiss2021-01-281-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.0Kevin Van Brunt2021-01-221-1/+1
|\ \ | |/
| * Fix wrong superclass in docKilian2021-01-021-1/+1
| |
* | Merge branch 'master' into 2.0Todd Leonhardt2020-11-113-14/+11
|\ \ | |/ | | | | | | # Conflicts: # CHANGELOG.md
| * Replace with_argparser_and_unknown_args in docsKyle King2020-11-081-11/+8
| |
| * Use set --verbose instead of -v in docsKyle King2020-10-311-2/+2
| |
| * Fixed error in set --long, which should be set -vKyle King2020-10-311-2/+2
| | | | | | | | | | (Cmd) set --long Usage: set [-h] [-v] [param] [value] Error: unrecognized arguments: --long
| * typoStratos Gerakakis2020-10-101-1/+1
| |
* | Added section to completion docs about read_input() functionKevin Van Brunt2020-09-091-0/+12
| |
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-09-091-9/+10
|\ \ | |/
| * Updated documentation about set commandKevin Van Brunt2020-09-091-9/+10
| |
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-09-031-6/+34
|\ \ | |/
| * Fixed type hints in example code1.3.9Kevin Van Brunt2020-09-031-1/+1
| |
| * Documented CommandSet event handlersKevin Van Brunt2020-09-031-1/+29
| |
| * Updated docsKevin Van Brunt2020-09-011-4/+4
| |
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-281-2/+2
|\ \ | |/
| * Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵Kevin Van Brunt2020-08-271-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 Brunt2020-08-271-6/+2
| |
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-272-10/+12
|\ \ | |/
| * The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵Kevin Van Brunt2020-08-262-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.0Kevin Van Brunt2020-08-251-1/+17
|\ \ | |/
| * Updated change log and docs for release1.3.5Kevin Van Brunt2020-08-251-0/+15
| |
| * Fixed RecursionError when printing an argparse.Namespace caused by custom ↵Kevin Van Brunt2020-08-251-1/+2
| | | | | | | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute
* | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-202-0/+4
|\ \ | |/
| * Updated documentation with more explicit discussions on testingEric Lin2020-08-202-0/+4
| | | | | | | | Added unit test to verify command name validation updates.
* | Replaced choices_function / choices_method with choices_provider.Kevin Van Brunt2020-08-131-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 toEric Lin2020-08-121-34/+35
| | | | | | CommandSet command functions (do_, complete_, help_). Renamed install_command_set and uninstall_command_set to register_command_set and unregister_command_set.