Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Updated async_alert() to account for self.prompt not matching Readline's ↵async_prompt | Kevin Van Brunt | 2021-09-10 | 1 | -21/+16 |
| | | | | current prompt. | ||||
* | Argparse tab completer will complete remaining flag names if there are no ↵ | Kevin Van Brunt | 2021-09-07 | 1 | -0/+14 |
| | | | | more positionals to complete. | ||||
* | Added ap_completer_type arg to Cmd2ArgumentParser.__init__(). | Kevin Van Brunt | 2021-09-01 | 1 | -28/+149 |
| | | | | Added unit tests for custom ArgparseCompleter | ||||
* | Refactored custom ArgparseCompleter functionality so they will now be set ↵ | Kevin Van Brunt | 2021-09-01 | 1 | -2/+2 |
| | | | | | | using methods on ArgumentParser objects. This fixes issue where subcommands did not use the correct custom ArgparseCompleter type. | ||||
* | Added self.last_result unit tests for the history command. | Kevin Van Brunt | 2021-08-25 | 1 | -9/+54 |
| | |||||
* | 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 | 2 | -2/+61 |
| | | | | Added self.last_result unit tests for alias, edit, eof, help, macro, quit, shortcuts, and run_pyscript commands. | ||||
* | Merge branch 'master' into topic_width | Kevin Van Brunt | 2021-08-23 | 2 | -6/+57 |
|\ | |||||
| * | Removed DEFAULT_ARGUMENT_PARSER and DEFAULT_COMMAND_COMPLETER from __init.py__ | Kevin Van Brunt | 2021-08-23 | 1 | -6/+4 |
| | | |||||
| * | Applied black format | Eric Lin | 2021-08-23 | 1 | -1/+2 |
| | | |||||
| * | * New function `set_default_command_completer_type()` allows developer to ↵ | Eric Lin | 2021-08-23 | 1 | -0/+52 |
| | | | | | | | | | | | | | | | | | | extend and modify the behavior of `ArgparseCompleter`. * New function `register_argparse_argument_parameter()` allows developers to specify custom parameters to be passed to the argparse parser's `add_argument()` method. These parameters will become accessible in the resulting argparse Action object when modifying `ArgparseCompleter` behavior. | ||||
* | | set command output now uses SimpleTable. | Kevin Van Brunt | 2021-08-19 | 5 | -61/+88 |
|/ | | | | | | | 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 | 5 | -35/+33 |
| | |||||
* | Removed obsolete unit test | Kevin Van Brunt | 2021-06-14 | 1 | -27/+2 |
| | |||||
* | Added unit tests for History and Statement | Kevin Van Brunt | 2021-06-14 | 2 | -0/+118 |
| | |||||
* | Merge branch 'master' into make-run_editor-public | Todd Leonhardt | 2021-05-24 | 1 | -1/+1 |
|\ | |||||
| * | do_eof() now just calls the quit function | Kevin Van Brunt | 2021-05-17 | 1 | -1/+1 |
| | | |||||
* | | Make _run_editor() public | Simon J. Rowe | 2021-05-14 | 1 | -3/+3 |
|/ | |||||
* | 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 | 3 | -3/+3 |
| | |||||
* | Made the amount of space between columns in a SimpleTable configurablecolumn_spacing | Kevin Van Brunt | 2021-04-21 | 1 | -0/+17 |
| | |||||
* | 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 |
| | |||||
* | And that's the last of it. Passes mypy. | Eric Lin | 2021-04-06 | 1 | -5/+5 |
| | |||||
* | Replaced some pexcept() calls with perror(). | Kevin Van Brunt | 2021-04-02 | 2 | -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 Brunt | 2021-03-30 | 5 | -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_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 | 2 | -2/+6 |
| | |||||
* | Resolves comments from PR | Eric Lin | 2021-03-18 | 3 | -3/+9 |
| | |||||
* | 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. | ||||
* | Fixed issue where argparse choices could not be CompletionItems | Kevin Van Brunt | 2021-03-02 | 1 | -0/+19 |
| | |||||
* | Merge branch 'master' into formatted_completions | Kevin Van Brunt | 2021-03-02 | 1 | -107/+74 |
|\ | |||||
| * | Merge branch 'master' into history_fix | Kevin Van Brunt | 2021-03-02 | 2 | -3/+36 |
| |\ | |||||
| * \ | Merge branch 'master' into history_fixhistory_fix | Todd Leonhardt | 2021-03-02 | 1 | -0/+8 |
| |\ \ | |||||
| * \ \ | Update CHANGELOG with info on recent bug fix PR | Todd Leonhardt | 2021-03-01 | 1 | -11/+45 |
| |\ \ \ | |||||
| * | | | | Fixed issue where HistoryItem indexes were being reused | Kevin Van Brunt | 2021-02-23 | 1 | -107/+74 |
| | | | | | |||||
* | | | | | Added support for ANSI styles and newlines in tab completion results | Kevin Van Brunt | 2021-03-02 | 2 | -10/+28 |
| |_|_|/ |/| | | | |||||
* | | | | Added cmd2.exceptions.PassThroughExceptionexception_passthrough | Kevin Van Brunt | 2021-03-02 | 2 | -3/+36 |
| |_|/ |/| | | |||||
* | | | Moved empty line check in table creator | Kevin Van Brunt | 2021-03-02 | 1 | -0/+8 |
| |/ |/| | |||||
* | | Fixed issue where TableCreator was tossing blank last linestable_newline | Kevin Van Brunt | 2021-03-01 | 1 | -11/+45 |
|/ | |||||
* | Deprecate Python 3.5 | Todd Leonhardt | 2021-02-20 | 5 | -43/+15 |
| | |||||
* | Fixed black, isort, flake8, and doc8 issues | Todd Leonhardt | 2021-02-19 | 5 | -158/+163 |
| | |||||
* | Merge branch 'master' into black | Todd Leonhardt | 2021-02-19 | 6 | -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.0 | Todd Leonhardt | 2021-01-31 | 1 | -2/+0 |
| |\ | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md | ||||
| * \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2021-01-29 | 2 | -13/+46 |
| |\ \ | |||||
| * \ \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2021-01-28 | 1 | -4/+13 |
| |\ \ \ |