summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy.py_refactorKevin Van Brunt2021-03-2623-289/+231
| | | | | | | | | | 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.
* Merge pull request #1080 from python-cmd2/ipy_localsKevin Van Brunt2021-03-263-67/+66
|\ | | | | ipy command now includes all of self.py_locals in the IPython environment
| * Fixed type hintsipy_localsKevin Van Brunt2021-03-251-5/+2
| |
| * Removed ipy's access to the CLI's globals() dictionaryKevin Van Brunt2021-03-242-35/+33
| |
| * ipy command now includes all of self.py_locals in the IPython environmentKevin Van Brunt2021-03-243-38/+42
|/
* Merge pull request #1079 from python-cmd2/autospec_doc_updateskotfu2021-03-231-13/+37
|\ | | | | Update autospec mock documentation
| * Update autospec mock documentationkotfu2021-03-231-13/+37
|/
* Fixed colors example codeKevin Van Brunt2021-03-231-4/+4
|
* Fixed docs creation errorsKevin Van Brunt2021-03-231-0/+3
|
* Merge pull request #1078 from python-cmd2/exit_codeKevin Van Brunt2021-03-237-10/+23
|\ | | | | onecmd_plus_hooks() now sets self.exit_code when a SystemExit handled
| * No longer using -1 as an exit codeexit_codeKevin Van Brunt2021-03-236-6/+7
| |
| * onecmd_plus_hooks() now sets self.exit_code when a SystemExit handledKevin Van Brunt2021-03-235-4/+16
|/
* Updating commentEric Lin2021-03-231-1/+1
|
* Updated out of date commentEric Lin2021-03-231-1/+1
|
* Resolves comments from PREric Lin2021-03-1820-126/+385
|
* Some mypy validation fixesEric Lin2021-03-189-112/+121
|
* Added testsEric Lin2021-03-184-11/+131
|
* Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵Eric Lin2021-03-184-25/+116
| | | | | | | | 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-182-2/+3
|
* Added link for command_definition moduleKevin Van Brunt2021-03-081-0/+2
|
* Updated commentsKevin Van Brunt2021-03-031-6/+7
|
* Merge pull request #1069 from python-cmd2/completion_item_choicesTodd Leonhardt2021-03-022-2/+24
|\ | | | | Fixed issue where argparse choices could not be CompletionItems
| * Fixed issue where argparse choices could not be CompletionItemsKevin Van Brunt2021-03-022-2/+24
|/
* Merge pull request #1068 from python-cmd2/formatted_completionsKevin Van Brunt2021-03-028-92/+144
|\ | | | | Formatted completions
| * Made changes requested in code reviewKevin Van Brunt2021-03-022-2/+2
| |
| * Updated change logKevin Van Brunt2021-03-021-0/+1
| |
| * Updated tab completion exampleKevin Van Brunt2021-03-021-3/+4
| |
| * Merge branch 'master' into formatted_completionsKevin Van Brunt2021-03-024-194/+154
| |\ | |/ |/|
* | Merge pull request #1065 from python-cmd2/history_fixKevin Van Brunt2021-03-024-194/+154
|\ \ | | | | | | History fix
| * \ Merge branch 'master' into history_fixKevin Van Brunt2021-03-026-3/+60
| |\ \ | |/ / |/| |
| * | Merge branch 'master' into history_fixhistory_fixTodd Leonhardt2021-03-022-4/+13
| |\ \
| * \ \ Update CHANGELOG with info on recent bug fix PRTodd Leonhardt2021-03-013-13/+52
| |\ \ \
| * | | | Updated change logKevin Van Brunt2021-03-011-0/+2
| | | | |
| * | | | Fixed issue where HistoryItem indexes were being reusedKevin Van Brunt2021-02-233-194/+153
| | | | |
| | | | * Added support for ANSI styles and newlines in tab completion resultsKevin Van Brunt2021-03-027-89/+139
| |_|_|/ |/| | |
* | | | Merge pull request #1067 from python-cmd2/exception_passthroughKevin Van Brunt2021-03-026-3/+60
|\ \ \ \ | |_|_|/ |/| | | Added cmd2.exceptions.PassThroughException
| * | | Added cmd2.exceptions.PassThroughExceptionexception_passthroughKevin Van Brunt2021-03-026-3/+60
|/ / /
* | | Moved empty line check in table creatorKevin Van Brunt2021-03-022-4/+13
| |/ |/|
* | Merge pull request #1066 from python-cmd2/table_newlineTodd Leonhardt2021-03-013-12/+52
|\ \ | |/ |/| Fixed issue where TableCreator was tossing blank last lines
| * Fixed issue where TableCreator was tossing blank last linestable_newlineKevin Van Brunt2021-03-013-12/+52
|/
* Merge pull request #1060 from python-cmd2/mypyTodd Leonhardt2021-02-225-9/+25
|\ | | | | Start making small changes to fix mypy warnings
| * Fix error in Python 3.6Todd Leonhardt2021-02-211-2/+1
| |
| * Start making small changes to fix mypy warningsTodd Leonhardt2021-02-215-10/+27
|/
* Merge pull request #1059 from python-cmd2/deprecate_35Todd Leonhardt2021-02-2123-123/+72
|\ | | | | Deprecate support for Python 3.5
| * Updated README and CHANGELOGTodd Leonhardt2021-02-202-2/+3
| |
| * Deprecate Python 3.5Todd Leonhardt2021-02-2021-121/+69
|/
* Merge pull request #1052 from python-cmd2/blackTodd Leonhardt2021-02-2091-1945/+3177
|\ | | | | Add black and isort GitHub Action Workflows
| * Fixed black, isort, flake8, and doc8 issuesTodd Leonhardt2021-02-1916-320/+445
| |
| * Merge branch 'master' into blackTodd Leonhardt2021-02-1928-1109/+1010
| |\ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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 pull request #1055 from python-cmd2/2.0Todd Leonhardt2021-02-1827-795/+853
|\ \ | | | | | | Merging in 2.0 branch