Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Updated async_alert() to account for self.prompt not matching Readline's ↵ | Kevin Van Brunt | 2021-09-14 | 1 | -21/+16 |
| | | | | current prompt. | ||||
* | Added self.last_result unit tests for run_script, _relative_run_script, and ↵ | Kevin Van Brunt | 2021-08-25 | 1 | -1/+33 |
| | | | | set commands. | ||||
* | Fixed extra space appended to each alias by "alias list" command. | Kevin Van Brunt | 2021-08-25 | 1 | -2/+54 |
| | | | | Added self.last_result unit tests for alias, edit, eof, help, macro, quit, shortcuts, and run_pyscript commands. | ||||
* | set command output now uses SimpleTable. | Kevin Van Brunt | 2021-08-19 | 1 | -18/+29 |
| | | | | | | | Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show. | ||||
* | Fixing tests on Python 3.10 | Kevin Van Brunt | 2021-06-17 | 1 | -4/+4 |
| | |||||
* | do_eof() now just calls the quit function | Kevin Van Brunt | 2021-05-17 | 1 | -1/+1 |
| | |||||
* | Removed cmd2.Cmd.quit_on_sigint. | Kevin Van Brunt | 2021-04-30 | 1 | -25/+2 |
| | |||||
* | Stopping a shell command with Ctrl-C now raises a KeyboardInterrupt to ↵ | Kevin Van Brunt | 2021-04-30 | 1 | -0/+17 |
| | | | | | | 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-30 | 1 | -7/+7 |
| | | | | pressed and instead run the next command in its list. | ||||
* | Renamed silent_startup_script to silence_startup_script for clarity | Kevin Van Brunt | 2021-04-28 | 1 | -4/+4 |
| | |||||
* | Style changes from running black on Python 3.9 | Kevin Van Brunt | 2021-04-27 | 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 | 1 | -3/+3 |
| | |||||
* | Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy. | Kevin Van Brunt | 2021-03-30 | 1 | -42/+10 |
| | | | | | | | | | | 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. | ||||
* | No longer using -1 as an exit codeexit_code | Kevin Van Brunt | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | onecmd_plus_hooks() now sets self.exit_code when a SystemExit handled | Kevin Van Brunt | 2021-03-23 | 1 | -1/+4 |
| | |||||
* | Resolves comments from PR | Eric Lin | 2021-03-18 | 1 | -1/+1 |
| | |||||
* | Added tests | Eric Lin | 2021-03-18 | 1 | -1/+2 |
| | |||||
* | Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵ | Eric Lin | 2021-03-18 | 1 | -4/+3 |
| | | | | | | | | 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. | ||||
* | Added cmd2.exceptions.PassThroughExceptionexception_passthrough | Kevin Van Brunt | 2021-03-02 | 1 | -1/+16 |
| | |||||
* | Deprecate Python 3.5 | Todd Leonhardt | 2021-02-20 | 1 | -8/+3 |
| | |||||
* | Fixed black, isort, flake8, and doc8 issues | Todd Leonhardt | 2021-02-19 | 1 | -8/+9 |
| | |||||
* | Merge branch 'master' into black | Todd Leonhardt | 2021-02-19 | 1 | -16/+36 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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 | Kevin Van Brunt | 2021-01-28 | 1 | -4/+13 |
| |\ | |||||
| * | | Removed --silent flag from alias/macro create since startup scripts can be ↵ | Kevin Van Brunt | 2021-01-22 | 1 | -14/+0 |
| | | | | | | | | | | | | | | | | | | run silently. Removed --with_silent flag from alias/macro list since startup scripts can be run silently. | ||||
| * | | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2021-01-22 | 1 | -2/+13 |
| |\ \ | |||||
| * \ \ | Merge branch 'master' into 2.0 | Todd Leonhardt | 2020-11-21 | 1 | -18/+0 |
| |\ \ \ | |||||
| * \ \ \ | Merge branch 'master' into 2.0 | Todd Leonhardt | 2020-11-11 | 1 | -10/+28 |
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md | ||||
| * \ \ \ \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-17 | 1 | -0/+30 |
| |\ \ \ \ \ | |||||
| * | | | | | | Updated unit tests for read_input() | Kevin Van Brunt | 2020-09-05 | 1 | -0/+36 |
| | | | | | | | |||||
| * | | | | | | Refactored complete() to handle custom behavior from read_input() | Kevin Van Brunt | 2020-08-31 | 1 | -4/+4 |
| | | | | | | | |||||
* | | | | | | | Add in isort changes | Todd Leonhardt | 2021-01-31 | 1 | -5/+15 |
| | | | | | | | |||||
* | | | | | | | Attempt to fix remaining black failures | Todd Leonhardt | 2021-01-31 | 1 | -4/+3 |
| | | | | | | | |||||
* | | | | | | | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 1 | -66/+292 |
| |_|_|_|_|/ |/| | | | | | |||||
* | | | | | | Added option to run startup scripts silently | Kevin Van Brunt | 2021-01-22 | 1 | -4/+13 |
| |_|_|_|/ |/| | | | | |||||
* | | | | | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 1 | -2/+12 |
| | | | | | | | | | | | | | | | | | | | | minor import changes. | ||||
* | | | | | Skip a test which is failing on Python 3.8 and 3.9 for now to fix a unit test | Todd Leonhardt | 2021-01-21 | 1 | -0/+1 |
| |_|_|/ |/| | | | |||||
* | | | | feat(utils): probe editors in system path | Mikhail Ushanov | 2020-11-17 | 1 | -18/+0 |
| |_|/ |/| | | | | | | | | Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com> | ||||
* | | | Format multiline docstrings to match other help messages | Bambu | 2020-10-09 | 1 | -0/+15 |
| | | | | | | | | | | | | Changed cmd2 do_cmd to dedent docstrings using `pydoc.getdoc`. This patch provides output for docstrings that look like using argparse or a single line docstring | ||||
* | | | Fixed issue where quoted redirectors and terminators in aliases and macros ↵ | Kevin Van Brunt | 2020-09-30 | 1 | -10/+13 |
| |/ |/| | | | | | | | | | were not being restored when read from a startup script. | ||||
* | | Added --silent flag to alias/macro create. | Kevin Van Brunt | 2020-09-10 | 1 | -0/+30 |
| | | | | | | | | Added --with_silent flag to alias/macro list. | ||||
* | | Added unit tests for CommandSet callbacks | Kevin Van Brunt | 2020-09-01 | 1 | -4/+4 |
|/ | |||||
* | the with_argparse() decorator was incorrectly using a parsed statement ↵1.3.7 | Eric Lin | 2020-08-27 | 1 | -0/+17 |
| | | | | object to search for the original function arguments. Switched to search for the original statement value instead | ||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 1 | -2/+2 |
| | | | | implementation as an option to with_argparser instead. | ||||
* | Removed pwarning() calls when command raises SystemExit | Kevin Van Brunt | 2020-05-28 | 1 | -0/+11 |
| | | | | Added unit tests | ||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -4/+15 |
| | | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes | ||||
* | Fix unit test which made incorrect assumption that vi editor would exist on ↵ | Todd Leonhardt | 2020-04-23 | 1 | -8/+3 |
| | | | | all Linux systems | ||||
* | Merge branch 'master' into table_creator | Todd Leonhardt | 2020-04-15 | 1 | -26/+8 |
|\ | |||||
| * | Simplfied _redirect_output() by raising exception instead of returning bool | Kevin Van Brunt | 2020-04-11 | 1 | -26/+8 |
| | | |||||
* | | Initial commit of table creation API | Kevin Van Brunt | 2020-04-09 | 1 | -4/+2 |
|/ |