summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Stopping a shell command with Ctrl-C now raises a KeyboardInterrupt to ↵ctrl-cKevin Van Brunt2021-04-304-13/+70
| | | | | | support stopping a text script which ran the shell command. On POSIX systems, shell commands and processes being piped to are now run in the user's preferred shell instead of /bin/sh.
* Changed default behavior of runcmds_plus_hooks() to not stop when Ctrl-C is ↵Kevin Van Brunt2021-04-283-11/+14
| | | | pressed and instead run the next command in its list.
* Added handling for OSError caused by trying to load a GNU readline shared ↵Kevin Van Brunt2021-04-281-2/+2
| | | | | | library in Python environments like PyPy which have a pure Python implementation of readline.
* Renamed silent_startup_script to silence_startup_script for clarityKevin Van Brunt2021-04-284-10/+11
|
* Merge pull request #1097 from python-cmd2/black_fixesKevin Van Brunt2021-04-2718-24/+24
|\ | | | | Style changes from running black on Python 3.9
| * Style changes from running black on Python 3.9Kevin Van Brunt2021-04-2718-24/+24
|/
* Merge pull request #1095 from python-cmd2/column_spacingKevin Van Brunt2021-04-273-11/+37
|\ | | | | Made the amount of space between columns in a SimpleTable configurable
| * Made the amount of space between columns in a SimpleTable configurablecolumn_spacingKevin Van Brunt2021-04-213-11/+37
|/
* Fixed typo in docstringKevin Van Brunt2021-04-211-1/+1
|
* Increased unit test coverage for pexcept()Kevin Van Brunt2021-04-131-0/+28
|
* Updated main code to use f-stringsKevin Van Brunt2021-04-139-162/+125
|
* Add mypy validation actionEric Lin2021-04-063-2/+30
|
* And that's the last of it. Passes mypy.Eric Lin2021-04-0612-80/+126
|
* history, py_bridge, transcript now passs mypyEric Lin2021-04-064-37/+48
|
* Command function formats defined and decorators.py updated with the defined ↵Eric Lin2021-04-062-22/+71
| | | | signatures
* More mypy fixesEric Lin2021-04-065-51/+81
|
* Replaced some pexcept() calls with perror().Kevin Van Brunt2021-04-028-58/+46
| | | | | | Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage.
* Refactored _perform_completion() to remove need for a cast() callKevin Van Brunt2021-04-023-26/+23
| | | | Changed CommandResult.stderr to a str instead of Optional[str]
* More mypy validation changes. cmd2.py is nearly fully mypy compliant now.Eric Lin2021-04-027-69/+91
|
* More things to make mypy happy.Eric Lin2021-04-029-174/+240
|
* MyPy strict checking doesn't allow implicit exports. Must explicitly export ↵Eric Lin2021-04-021-0/+41
| | | | in __init__.py
* 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-3023-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
| |\ | |/ |/|