summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Replaced some pexcept() calls with perror().error_cleanupKevin Van Brunt2021-03-312-31/+26
| | | | | | Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage.
* Changed History to use OrderDict to support Python 3.6 in non-CPython ↵Kevin Van Brunt2021-03-302-7/+10
| | | | environments.
* Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy.Kevin Van Brunt2021-03-302-150/+113
| | | | | | | | | | 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.
* Fixed type hintsipy_localsKevin Van Brunt2021-03-251-5/+2
|
* Removed ipy's access to the CLI's globals() dictionaryKevin Van Brunt2021-03-241-26/+29
|
* ipy command now includes all of self.py_locals in the IPython environmentKevin Van Brunt2021-03-241-25/+30
|
* No longer using -1 as an exit codeexit_codeKevin Van Brunt2021-03-231-2/+2
|
* onecmd_plus_hooks() now sets self.exit_code when a SystemExit handledKevin Van Brunt2021-03-231-2/+4
|
* Updating commentEric Lin2021-03-231-1/+1
|
* Updated out of date commentEric Lin2021-03-231-1/+1
|
* Resolves comments from PREric Lin2021-03-185-105/+269
|
* Some mypy validation fixesEric Lin2021-03-187-109/+120
|
* Added testsEric Lin2021-03-181-8/+13
|
* Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵Eric Lin2021-03-183-21/+113
| | | | | | | | registered CommandSets for settables. Settables can now set any attribute on any object passed to it. The name the user sees may be set to a different value than what the actual attribute is. Cmd2 will now aggregate all settables on the cmd2.Cmd instance with each installed CommandSet.
* Corrected help text for alias commandKevin Van Brunt2021-03-181-1/+1
|
* Updated commentsKevin Van Brunt2021-03-031-6/+7
|
* Fixed issue where argparse choices could not be CompletionItemsKevin Van Brunt2021-03-021-2/+5
|
* Made changes requested in code reviewKevin Van Brunt2021-03-022-2/+2
|
* Merge branch 'master' into formatted_completionsKevin Van Brunt2021-03-022-87/+79
|\
| * Merge branch 'master' into history_fixKevin Van Brunt2021-03-022-0/+20
| |\
| * \ Merge branch 'master' into history_fixhistory_fixTodd Leonhardt2021-03-021-4/+5
| |\ \
| * \ \ Update CHANGELOG with info on recent bug fix PRTodd Leonhardt2021-03-011-0/+4
| |\ \ \
| * | | | Fixed issue where HistoryItem indexes were being reusedKevin Van Brunt2021-02-232-87/+79
| | | | |
* | | | | Added support for ANSI styles and newlines in tab completion resultsKevin Van Brunt2021-03-024-79/+108
| |_|_|/ |/| | |
* | | | Added cmd2.exceptions.PassThroughExceptionexception_passthroughKevin Van Brunt2021-03-022-0/+20
| |_|/ |/| |
* | | Moved empty line check in table creatorKevin Van Brunt2021-03-021-4/+5
| |/ |/|
* | Fixed issue where TableCreator was tossing blank last linestable_newlineKevin Van Brunt2021-03-011-0/+4
|/
* Fix error in Python 3.6Todd Leonhardt2021-02-211-2/+1
|
* Start making small changes to fix mypy warningsTodd Leonhardt2021-02-214-10/+26
|
* Deprecate Python 3.5Todd Leonhardt2021-02-205-46/+22
|
* Fixed black, isort, flake8, and doc8 issuesTodd Leonhardt2021-02-196-115/+220
|
* Merge branch 'master' into blackTodd Leonhardt2021-02-198-620/+469
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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-293-20/+40
| |\ \
| * \ \ Merge branch 'master' into 2.0Kevin Van Brunt2021-01-282-2/+8
| |\ \ \
| * | | | Removed with_argparser_and_unknown_args since it was deprecated in 1.3.0.Kevin Van Brunt2021-01-222-45/+1
| | | | |
| * | | | 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-2214-96/+291
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into 2.0Todd Leonhardt2020-11-211-21/+20
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-11-121-2/+6
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch 'master' into 2.0Todd Leonhardt2020-11-114-49/+115
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md
| * \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-174-26/+84
| |\ \ \ \ \ \ \ \
| * | | | | | | | | 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-096-55/+56
| | | | | | | | | |
| * | | | | | | | | Merge branch '2.0' into read_inputKevin Van Brunt2020-09-092-3/+20
| |\ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-092-3/+20
| | |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | | 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-052-44/+73
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / /