Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Stopping a shell command with Ctrl-C now raises a KeyboardInterrupt to ↵ctrl-c | Kevin Van Brunt | 2021-04-30 | 4 | -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 Brunt | 2021-04-28 | 3 | -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 Brunt | 2021-04-28 | 1 | -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 clarity | Kevin Van Brunt | 2021-04-28 | 4 | -10/+11 |
| | |||||
* | Merge pull request #1097 from python-cmd2/black_fixes | Kevin Van Brunt | 2021-04-27 | 18 | -24/+24 |
|\ | | | | | Style changes from running black on Python 3.9 | ||||
| * | Style changes from running black on Python 3.9 | Kevin Van Brunt | 2021-04-27 | 18 | -24/+24 |
|/ | |||||
* | Merge pull request #1095 from python-cmd2/column_spacing | Kevin Van Brunt | 2021-04-27 | 3 | -11/+37 |
|\ | | | | | Made the amount of space between columns in a SimpleTable configurable | ||||
| * | Made the amount of space between columns in a SimpleTable configurablecolumn_spacing | Kevin Van Brunt | 2021-04-21 | 3 | -11/+37 |
|/ | |||||
* | Fixed typo in docstring | Kevin Van Brunt | 2021-04-21 | 1 | -1/+1 |
| | |||||
* | Increased unit test coverage for pexcept() | Kevin Van Brunt | 2021-04-13 | 1 | -0/+28 |
| | |||||
* | Updated main code to use f-strings | Kevin Van Brunt | 2021-04-13 | 9 | -162/+125 |
| | |||||
* | Add mypy validation action | Eric Lin | 2021-04-06 | 3 | -2/+30 |
| | |||||
* | And that's the last of it. Passes mypy. | Eric Lin | 2021-04-06 | 12 | -80/+126 |
| | |||||
* | history, py_bridge, transcript now passs mypy | Eric Lin | 2021-04-06 | 4 | -37/+48 |
| | |||||
* | Command function formats defined and decorators.py updated with the defined ↵ | Eric Lin | 2021-04-06 | 2 | -22/+71 |
| | | | | signatures | ||||
* | More mypy fixes | Eric Lin | 2021-04-06 | 5 | -51/+81 |
| | |||||
* | Replaced some pexcept() calls with perror(). | Kevin Van Brunt | 2021-04-02 | 8 | -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() call | Kevin Van Brunt | 2021-04-02 | 3 | -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 Lin | 2021-04-02 | 7 | -69/+91 |
| | |||||
* | More things to make mypy happy. | Eric Lin | 2021-04-02 | 9 | -174/+240 |
| | |||||
* | MyPy strict checking doesn't allow implicit exports. Must explicitly export ↵ | Eric Lin | 2021-04-02 | 1 | -0/+41 |
| | | | | in __init__.py | ||||
* | Changed History to use OrderDict to support Python 3.6 in non-CPython ↵ | Kevin Van Brunt | 2021-03-30 | 2 | -7/+10 |
| | | | | environments. | ||||
* | Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy. | Kevin Van Brunt | 2021-03-30 | 23 | -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_locals | Kevin Van Brunt | 2021-03-26 | 3 | -67/+66 |
|\ | | | | | ipy command now includes all of self.py_locals in the IPython environment | ||||
| * | Fixed type hintsipy_locals | Kevin Van Brunt | 2021-03-25 | 1 | -5/+2 |
| | | |||||
| * | Removed ipy's access to the CLI's globals() dictionary | Kevin Van Brunt | 2021-03-24 | 2 | -35/+33 |
| | | |||||
| * | ipy command now includes all of self.py_locals in the IPython environment | Kevin Van Brunt | 2021-03-24 | 3 | -38/+42 |
|/ | |||||
* | Merge pull request #1079 from python-cmd2/autospec_doc_updates | kotfu | 2021-03-23 | 1 | -13/+37 |
|\ | | | | | Update autospec mock documentation | ||||
| * | Update autospec mock documentation | kotfu | 2021-03-23 | 1 | -13/+37 |
|/ | |||||
* | Fixed colors example code | Kevin Van Brunt | 2021-03-23 | 1 | -4/+4 |
| | |||||
* | Fixed docs creation errors | Kevin Van Brunt | 2021-03-23 | 1 | -0/+3 |
| | |||||
* | Merge pull request #1078 from python-cmd2/exit_code | Kevin Van Brunt | 2021-03-23 | 7 | -10/+23 |
|\ | | | | | onecmd_plus_hooks() now sets self.exit_code when a SystemExit handled | ||||
| * | No longer using -1 as an exit codeexit_code | Kevin Van Brunt | 2021-03-23 | 6 | -6/+7 |
| | | |||||
| * | onecmd_plus_hooks() now sets self.exit_code when a SystemExit handled | Kevin Van Brunt | 2021-03-23 | 5 | -4/+16 |
|/ | |||||
* | Updating comment | Eric Lin | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Updated out of date comment | Eric Lin | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Resolves comments from PR | Eric Lin | 2021-03-18 | 20 | -126/+385 |
| | |||||
* | Some mypy validation fixes | Eric Lin | 2021-03-18 | 9 | -112/+121 |
| | |||||
* | Added tests | Eric Lin | 2021-03-18 | 4 | -11/+131 |
| | |||||
* | Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵ | Eric Lin | 2021-03-18 | 4 | -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 command | Kevin Van Brunt | 2021-03-18 | 2 | -2/+3 |
| | |||||
* | Added link for command_definition module | Kevin Van Brunt | 2021-03-08 | 1 | -0/+2 |
| | |||||
* | Updated comments | Kevin Van Brunt | 2021-03-03 | 1 | -6/+7 |
| | |||||
* | Merge pull request #1069 from python-cmd2/completion_item_choices | Todd Leonhardt | 2021-03-02 | 2 | -2/+24 |
|\ | | | | | Fixed issue where argparse choices could not be CompletionItems | ||||
| * | Fixed issue where argparse choices could not be CompletionItems | Kevin Van Brunt | 2021-03-02 | 2 | -2/+24 |
|/ | |||||
* | Merge pull request #1068 from python-cmd2/formatted_completions | Kevin Van Brunt | 2021-03-02 | 8 | -92/+144 |
|\ | | | | | Formatted completions | ||||
| * | Made changes requested in code review | Kevin Van Brunt | 2021-03-02 | 2 | -2/+2 |
| | | |||||
| * | Updated change log | Kevin Van Brunt | 2021-03-02 | 1 | -0/+1 |
| | | |||||
| * | Updated tab completion example | Kevin Van Brunt | 2021-03-02 | 1 | -3/+4 |
| | | |||||
| * | Merge branch 'master' into formatted_completions | Kevin Van Brunt | 2021-03-02 | 4 | -194/+154 |
| |\ | |/ |/| |