summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* do_eof() now just calls the quit functionctrl-dKevin Van Brunt2021-04-301-1/+1
|
* Removed cmd2.Cmd.quit_on_sigint.Kevin Van Brunt2021-04-301-25/+2
|
* Stopping a shell command with Ctrl-C now raises a KeyboardInterrupt to ↵Kevin Van Brunt2021-04-301-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 Brunt2021-04-301-7/+7
| | | | pressed and instead run the next command in its list.
* Renamed silent_startup_script to silence_startup_script for clarityKevin Van Brunt2021-04-281-4/+4
|
* Style changes from running black on Python 3.9Kevin Van Brunt2021-04-273-3/+3
|
* Made the amount of space between columns in a SimpleTable configurablecolumn_spacingKevin Van Brunt2021-04-211-0/+17
|
* Increased unit test coverage for pexcept()Kevin Van Brunt2021-04-131-0/+28
|
* Updated main code to use f-stringsKevin Van Brunt2021-04-131-3/+3
|
* And that's the last of it. Passes mypy.Eric Lin2021-04-061-5/+5
|
* Replaced some pexcept() calls with perror().Kevin Van Brunt2021-04-022-22/+15
| | | | | | Converted some strings to f-strings. Fixed some grammar in error messages and docs. Increased code coverage.
* Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy.Kevin Van Brunt2021-03-305-43/+58
| | | | | | | | | | 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_codeKevin Van Brunt2021-03-231-1/+1
|
* onecmd_plus_hooks() now sets self.exit_code when a SystemExit handledKevin Van Brunt2021-03-232-2/+6
|
* Resolves comments from PREric Lin2021-03-183-3/+9
|
* Added testsEric Lin2021-03-181-1/+2
|
* Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵Eric Lin2021-03-181-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.
* Fixed issue where argparse choices could not be CompletionItemsKevin Van Brunt2021-03-021-0/+19
|
* Merge branch 'master' into formatted_completionsKevin Van Brunt2021-03-021-107/+74
|\
| * Merge branch 'master' into history_fixKevin Van Brunt2021-03-022-3/+36
| |\
| * \ Merge branch 'master' into history_fixhistory_fixTodd Leonhardt2021-03-021-0/+8
| |\ \
| * \ \ Update CHANGELOG with info on recent bug fix PRTodd Leonhardt2021-03-011-11/+45
| |\ \ \
| * | | | Fixed issue where HistoryItem indexes were being reusedKevin Van Brunt2021-02-231-107/+74
| | | | |
* | | | | Added support for ANSI styles and newlines in tab completion resultsKevin Van Brunt2021-03-022-10/+28
| |_|_|/ |/| | |
* | | | Added cmd2.exceptions.PassThroughExceptionexception_passthroughKevin Van Brunt2021-03-022-3/+36
| |_|/ |/| |
* | | Moved empty line check in table creatorKevin Van Brunt2021-03-021-0/+8
| |/ |/|
* | Fixed issue where TableCreator was tossing blank last linestable_newlineKevin Van Brunt2021-03-011-11/+45
|/
* Deprecate Python 3.5Todd Leonhardt2021-02-205-43/+15
|
* Fixed black, isort, flake8, and doc8 issuesTodd Leonhardt2021-02-195-158/+163
|
* Merge branch 'master' into blackTodd Leonhardt2021-02-196-272/+278
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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.0Todd Leonhardt2021-01-311-2/+0
| |\ | | | | | | | | | | | | # Conflicts: # CHANGELOG.md
| * \ Merge branch 'master' into 2.0Kevin Van Brunt2021-01-292-13/+46
| |\ \
| * \ \ Merge branch 'master' into 2.0Kevin Van Brunt2021-01-281-4/+13
| |\ \ \
| * | | | Removed with_argparser_and_unknown_args since it was deprecated in 1.3.0.Kevin Van Brunt2021-01-222-2/+2
| | | | |
| * | | | Removed --silent flag from alias/macro create since startup scripts can be ↵Kevin Van Brunt2021-01-221-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | run silently. Removed --with_silent flag from alias/macro list since startup scripts can be run silently.
| * | | | Merge branch 'master' into 2.0Kevin Van Brunt2021-01-2213-88/+146
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into 2.0Todd Leonhardt2020-11-212-18/+59
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-11-121-0/+1
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch 'master' into 2.0Todd Leonhardt2020-11-111-10/+28
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md
| * \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-172-0/+37
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Moved two classes from cmd2.py to utils.py.Kevin Van Brunt2020-09-091-1/+0
| | | | | | | | | |
| * | | | | | | | | Merge branch '2.0' into read_inputKevin Van Brunt2020-09-091-26/+44
| |\ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-091-26/+44
| | |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Updated unit tests for read_input()Kevin Van Brunt2020-09-052-0/+37
| | | | | | | | | | | |
| * | | | | | | | | | | Merge branch '2.0' into read_inputKevin Van Brunt2020-09-053-34/+73
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / /
| | * | | | | | | | | | Merge branch 'master' into 2.0Kevin Van Brunt2020-09-053-34/+73
| | |\ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-031-4/+4
| | |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Refactored ArgparseCompleter to support custom completionKevin Van Brunt2020-09-011-6/+6
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Refactored complete() to handle custom behavior from read_input()Kevin Van Brunt2020-08-312-6/+6
| |/ / / / / / / / / / / /
| * | | | | | | | | | | | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-282-9/+54
| |\ \ \ \ \ \ \ \ \ \ \ \