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 | 2 | -13/+50 |
| | | | | | | 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 | 1 | -4/+5 |
| | | | | 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 | 1 | -4/+4 |
| | |||||
* | Made the amount of space between columns in a SimpleTable configurablecolumn_spacing | Kevin Van Brunt | 2021-04-21 | 1 | -11/+19 |
| | |||||
* | Fixed typo in docstring | Kevin Van Brunt | 2021-04-21 | 1 | -1/+1 |
| | |||||
* | Updated main code to use f-strings | Kevin Van Brunt | 2021-04-13 | 8 | -159/+122 |
| | |||||
* | Add mypy validation action | Eric Lin | 2021-04-06 | 2 | -2/+2 |
| | |||||
* | And that's the last of it. Passes mypy. | Eric Lin | 2021-04-06 | 10 | -74/+118 |
| | |||||
* | 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 | 2 | -31/+26 |
| | | | | | | 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 | 2 | -19/+20 |
| | | | | 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 | 8 | -174/+239 |
| | |||||
* | 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 | 2 | -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_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 | 1 | -26/+29 |
| | |||||
* | ipy command now includes all of self.py_locals in the IPython environment | Kevin Van Brunt | 2021-03-24 | 1 | -25/+30 |
| | |||||
* | No longer using -1 as an exit codeexit_code | Kevin Van Brunt | 2021-03-23 | 1 | -2/+2 |
| | |||||
* | onecmd_plus_hooks() now sets self.exit_code when a SystemExit handled | Kevin Van Brunt | 2021-03-23 | 1 | -2/+4 |
| | |||||
* | 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 | 5 | -105/+269 |
| | |||||
* | Some mypy validation fixes | Eric Lin | 2021-03-18 | 7 | -109/+120 |
| | |||||
* | Added tests | Eric Lin | 2021-03-18 | 1 | -8/+13 |
| | |||||
* | Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵ | Eric Lin | 2021-03-18 | 3 | -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 command | Kevin Van Brunt | 2021-03-18 | 1 | -1/+1 |
| | |||||
* | Updated comments | Kevin Van Brunt | 2021-03-03 | 1 | -6/+7 |
| | |||||
* | Fixed issue where argparse choices could not be CompletionItems | Kevin Van Brunt | 2021-03-02 | 1 | -2/+5 |
| | |||||
* | Made changes requested in code review | Kevin Van Brunt | 2021-03-02 | 2 | -2/+2 |
| | |||||
* | Merge branch 'master' into formatted_completions | Kevin Van Brunt | 2021-03-02 | 2 | -87/+79 |
|\ | |||||
| * | Merge branch 'master' into history_fix | Kevin Van Brunt | 2021-03-02 | 2 | -0/+20 |
| |\ | |||||
| * \ | Merge branch 'master' into history_fixhistory_fix | Todd Leonhardt | 2021-03-02 | 1 | -4/+5 |
| |\ \ | |||||
| * \ \ | Update CHANGELOG with info on recent bug fix PR | Todd Leonhardt | 2021-03-01 | 1 | -0/+4 |
| |\ \ \ | |||||
| * | | | | Fixed issue where HistoryItem indexes were being reused | Kevin Van Brunt | 2021-02-23 | 2 | -87/+79 |
| | | | | | |||||
* | | | | | Added support for ANSI styles and newlines in tab completion results | Kevin Van Brunt | 2021-03-02 | 4 | -79/+108 |
| |_|_|/ |/| | | | |||||
* | | | | Added cmd2.exceptions.PassThroughExceptionexception_passthrough | Kevin Van Brunt | 2021-03-02 | 2 | -0/+20 |
| |_|/ |/| | | |||||
* | | | Moved empty line check in table creator | Kevin Van Brunt | 2021-03-02 | 1 | -4/+5 |
| |/ |/| | |||||
* | | Fixed issue where TableCreator was tossing blank last linestable_newline | Kevin Van Brunt | 2021-03-01 | 1 | -0/+4 |
|/ | |||||
* | Fix error in Python 3.6 | Todd Leonhardt | 2021-02-21 | 1 | -2/+1 |
| | |||||
* | Start making small changes to fix mypy warnings | Todd Leonhardt | 2021-02-21 | 4 | -10/+26 |
| | |||||
* | Deprecate Python 3.5 | Todd Leonhardt | 2021-02-20 | 5 | -46/+22 |
| | |||||
* | Fixed black, isort, flake8, and doc8 issues | Todd Leonhardt | 2021-02-19 | 6 | -115/+220 |
| | |||||
* | Merge branch 'master' into black | Todd Leonhardt | 2021-02-19 | 8 | -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.0 | Todd Leonhardt | 2021-01-31 | 1 | -28/+29 |
| |\ | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md | ||||
| * \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2021-01-29 | 3 | -20/+40 |
| |\ \ |