summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
* Added cmd2.exceptions.PassThroughExceptionexception_passthroughKevin Van Brunt2021-03-021-0/+5
|
* Deprecate Python 3.5Todd Leonhardt2021-02-201-18/+18
|
* Fixed black, isort, flake8, and doc8 issuesTodd Leonhardt2021-02-191-78/+152
|
* Merge branch 'master' into blackTodd Leonhardt2021-02-191-316/+287
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # cmd2/__init__.py # cmd2/argparse_completer.py # cmd2/argparse_custom.py # cmd2/cmd2.py # cmd2/decorators.py # cmd2/exceptions.py # cmd2/utils.py # examples/arg_decorators.py # examples/argparse_completion.py # examples/modular_commands_main.py # tests/test_argparse_completer.py # tests/test_argparse_custom.py # tests/test_cmd2.py # tests/test_completion.py # tests/test_history.py
| * Merge branch 'master' into 2.0Todd Leonhardt2021-01-311-28/+29
| |\ | | | | | | | | | | | | # Conflicts: # CHANGELOG.md
| * \ Merge branch 'master' into 2.0Kevin Van Brunt2021-01-291-1/+7
| |\ \
| * \ \ Merge branch 'master' into 2.0Kevin Van Brunt2021-01-281-2/+7
| |\ \ \
| * | | | Removed --silent flag from alias/macro create since startup scripts can be ↵Kevin Van Brunt2021-01-221-30/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | run silently. Removed --with_silent flag from alias/macro list since startup scripts can be run silently.
| * | | | Merge branch 'master' into 2.0Kevin Van Brunt2021-01-221-17/+76
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into 2.0Todd Leonhardt2020-11-111-26/+79
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md
| * \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-171-15/+44
| |\ \ \ \ \ \
| * | | | | | | Added section to completion docs about read_input() functionKevin Van Brunt2020-09-091-0/+1
| | | | | | | |
| * | | | | | | Moved two classes from cmd2.py to utils.py.Kevin Van Brunt2020-09-091-44/+10
| | | | | | | |
| * | | | | | | Merge branch '2.0' into read_inputKevin Van Brunt2020-09-091-2/+1
| |\ \ \ \ \ \ \
| | * \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-091-2/+1
| | |\ \ \ \ \ \ \
| * | | | | | | | | Made CustomCompletionSettings public since it's optionally passed to public ↵Kevin Van Brunt2020-09-051-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | method cmd2.Cmd.complete().
| * | | | | | | | | Added pragma: no cover to some tab completion codeKevin Van Brunt2020-09-051-7/+5
| | | | | | | | | |
| * | | | | | | | | Updated unit tests for read_input()Kevin Van Brunt2020-09-051-2/+5
| | | | | | | | | |
| * | | | | | | | | Merge branch '2.0' into read_inputKevin Van Brunt2020-09-051-14/+35
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / /
| | * | | | | | | | Merge branch 'master' into 2.0Kevin Van Brunt2020-09-051-14/+35
| | |\ \ \ \ \ \ \ \
| * | \ \ \ \ \ \ \ \ Merge branch '2.0' into read_inputKevin Van Brunt2020-09-031-2/+5
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / /
| | * | | | | | | | | Merge branch 'master' into 2.0Kevin Van Brunt2020-09-031-2/+5
| | |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Fixed flake8 errorKevin Van Brunt2020-09-011-1/+4
| | | | | | | | | | | |
| * | | | | | | | | | | Removed enum.auto() for Python 3.5 compatibilityKevin Van Brunt2020-09-011-3/+3
| | | | | | | | | | | |
| * | | | | | | | | | | Fixed docs errorKevin Van Brunt2020-09-011-1/+2
| | | | | | | | | | | |
| * | | | | | | | | | | Updated commentsKevin Van Brunt2020-09-011-1/+5
| | | | | | | | | | | |
| * | | | | | | | | | | Refactored ArgparseCompleter to support custom completionKevin Van Brunt2020-09-011-43/+29
| | | | | | | | | | | |
| * | | | | | | | | | | Refactored read_input to support custom completionKevin Van Brunt2020-08-311-59/+138
| | | | | | | | | | | |
| * | | | | | | | | | | Refactored complete() to handle custom behavior from read_input()Kevin Van Brunt2020-08-311-74/+101
| |/ / / / / / / / / /
| * | | | | | | | | | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-281-9/+9
| |\ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-08-271-2/+2
| |\ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-08-251-2/+4
| |\ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-08-201-17/+27
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Replaced choices_function / choices_method with choices_provider.Kevin Van Brunt2020-08-131-31/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | | | | | | | | | | Add in isort changesTodd Leonhardt2021-01-311-14/+46
| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | Attempt to fix remaining black failuresTodd Leonhardt2021-01-311-13/+34
| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | Add black for automatic code formatTodd Leonhardt2021-01-311-401/+561
| |_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | |
* | | | | | | | | | | | | | Fixed syntax error in `pip install` command for GitHub ActionsTodd Leonhardt2021-01-301-28/+29
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also: - Refactored do_history command to extract a helper method to fix a flake8 warning about high complexity
* | | | | | | | | | | | | Printing error when OSError other than FileNotFoundError occurs when ↵Kevin Van Brunt2021-01-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deleting persistent history file with history --clear command.
* | | | | | | | | | | | | Fixed FileNotFoundError which occurred when running 'history --clear' and no ↵header_tabsKevin Van Brunt2021-01-281-1/+4
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | history file existed.
* | | | | | | | | | | | Fix flake8 error and make type hinting consistentTodd Leonhardt2021-01-241-1/+1
| | | | | | | | | | | |
* | | | | | | | | | | | Added option to run startup scripts silentlyKevin Van Brunt2021-01-221-2/+7
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | |
* | | | | | | | | | | Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-17/+77
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | minor import changes.
* | | | | | | | | | Merge branch 'master' into docstr_fmtTodd Leonhardt2020-11-111-1/+1
|\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | Fixed tab completion crash on Windowswin_tab_crashKevin Van Brunt2020-11-111-1/+1
| | | | | | | | | | |
* | | | | | | | | | | specifying is not none on coditionsBambu2020-11-111-2/+2
| | | | | | | | | | |
* | | | | | | | | | | fix flake8 errorBambu2020-10-191-1/+0
| | | | | | | | | | |
* | | | | | | | | | | Format multiline docstrings to match other help messagesBambu2020-10-091-4/+10
|/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed cmd2 do_cmd to dedent docstrings using `pydoc.getdoc`. This patch provides output for docstrings that look like using argparse or a single line docstring
* | | | | | | | | | Fixed issue where instantiating more than one cmd2-based class which uses ↵duplicate_subcommandKevin Van Brunt2020-09-301-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the @as_subcommand_to decorator resulted in duplicated help text in the base command the subcommands belong to.
* | | | | | | | | | Fixed issue where quoted redirectors and terminators in aliases and macros ↵Kevin Van Brunt2020-09-301-16/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | were not being restored when read from a startup script.