Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed handling of argparse's default options group name which was changed in ↵ | Kevin Van Brunt | 2021-06-17 | 1 | -2/+3 |
| | | | | Python 3.10 | ||||
* | Stopping a shell command with Ctrl-C now raises a KeyboardInterrupt to ↵ | Kevin Van Brunt | 2021-04-30 | 1 | -2/+2 |
| | | | | | | 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. | ||||
* | 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 | 1 | -2/+2 |
| | |||||
* | And that's the last of it. Passes mypy. | Eric Lin | 2021-04-06 | 1 | -1/+0 |
| | |||||
* | More mypy fixes | Eric Lin | 2021-04-06 | 1 | -3/+2 |
| | |||||
* | More mypy validation changes. cmd2.py is nearly fully mypy compliant now. | Eric Lin | 2021-04-02 | 1 | -7/+10 |
| | |||||
* | More things to make mypy happy. | Eric Lin | 2021-04-02 | 1 | -4/+4 |
| | |||||
* | Renamed use_ipython keyword parameter of cmd2.Cmd.__init__() to include_ipy. | Kevin Van Brunt | 2021-03-30 | 1 | -21/+11 |
| | | | | | | | | | | 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. | ||||
* | Resolves comments from PR | Eric Lin | 2021-03-18 | 1 | -13/+35 |
| | |||||
* | Some mypy validation fixes | Eric Lin | 2021-03-18 | 1 | -54/+31 |
| | |||||
* | Each CommandSet's settables are defined separately. cmd2.Cmd searches all ↵ | Eric Lin | 2021-03-18 | 1 | -2/+33 |
| | | | | | | | | 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. | ||||
* | 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 | 1 | -4/+16 |
| | |||||
* | Deprecate Python 3.5 | Todd Leonhardt | 2021-02-20 | 1 | -6/+1 |
| | |||||
* | Fixed black, isort, flake8, and doc8 issues | Todd Leonhardt | 2021-02-19 | 1 | -5/+14 |
| | |||||
* | Merge branch 'master' into black | Todd Leonhardt | 2021-02-19 | 1 | -71/+44 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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-22 | 1 | -29/+41 |
| |\ | |||||
| * \ | Merge branch 'master' into 2.0 | Todd Leonhardt | 2020-11-21 | 1 | -21/+20 |
| |\ \ | |||||
| * \ \ | Merge branch 'master' into 2.0 | Todd Leonhardt | 2020-11-11 | 1 | -9/+21 |
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md | ||||
| * \ \ \ | Merge branch 'master' into 2.0 | Kevin Van Brunt | 2020-09-17 | 1 | -8/+18 |
| |\ \ \ \ | |||||
| * | | | | | Moved two classes from cmd2.py to utils.py. | Kevin Van Brunt | 2020-09-09 | 1 | -2/+37 |
| | | | | | | |||||
| * | | | | | Documented support for standalone functions being used as completers and ↵ | Kevin Van Brunt | 2020-08-18 | 1 | -6/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | choices_providers. Added unit tests for this case. | ||||
| * | | | | | Replaced choices_function / choices_method with choices_provider. | Kevin Van Brunt | 2020-08-13 | 1 | -55/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced completer_function / completer_method with completer. ArgparseCompleter now always passes cmd2.Cmd or CommandSet instance as the self argument to choices_provider and completer functions. Moved basic_complete from utils into cmd2.Cmd class. Moved CompletionError to exceptions.py | ||||
* | | | | | | Add in isort changes | Todd Leonhardt | 2021-01-31 | 1 | -5/+16 |
| | | | | | | |||||
* | | | | | | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 1 | -45/+62 |
| |_|_|_|/ |/| | | | | |||||
* | | | | | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 1 | -5/+19 |
| | | | | | | | | | | | | | | | | | | | | minor import changes. | ||||
* | | | | | Update editor list for Linux/Mac - add joe and change order of various ↵ | Todd Leonhardt | 2020-11-21 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | graphical editors | ||||
* | | | | | Updated utils.find_editor() to include more Windows editors | Kevin Van Brunt | 2020-11-19 | 1 | -22/+20 |
| |_|_|/ |/| | | | |||||
* | | | | feat(utils): probe editors in system path | Mikhail Ushanov | 2020-11-17 | 1 | -21/+20 |
| |_|/ |/| | | | | | | | | Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com> | ||||
* | | | Fixed issue where quoted redirectors and terminators in aliases and macros ↵ | Kevin Van Brunt | 2020-09-30 | 1 | -9/+21 |
| |/ |/| | | | | | | | | | were not being restored when read from a startup script. | ||||
* | | Minor type hinting fixes. | Eric Lin | 2020-09-11 | 1 | -7/+14 |
| | | |||||
* | | Changes default category to be heritable by default - meaning that ↵ | Eric Lin | 2020-09-11 | 1 | -1/+4 |
|/ | | | | | | subclasses will inherit the parent class's default category. Adds optional flag to disable heritability. | ||||
* | Minor fixes to enable Python 3.5.2 support | Eric Lin | 2020-08-11 | 1 | -2/+7 |
| | |||||
* | Verify that a completer function is defined in a CommandSet before | Eric Lin | 2020-08-06 | 1 | -1/+30 |
| | | | | | | | | | | passing it a CommandSet instance. Search for a CommandSet instance that matches the completer's parent class type.` Resolves Issue #967 Renamed isolated_tests directory to tests_isolated for better visual grouping. Added some exception documentation | ||||
* | Documented CompletionError class | Kevin Van Brunt | 2020-04-23 | 1 | -4/+4 |
| | |||||
* | Updated docs | Kevin Van Brunt | 2020-04-22 | 1 | -9/+10 |
| | |||||
* | Merge branch 'master' into table_creator | Todd Leonhardt | 2020-04-15 | 1 | -10/+16 |
|\ | |||||
| * | onecmd_plus_hooks() no longer handles updating any state data related to ↵ | Kevin Van Brunt | 2020-04-12 | 1 | -10/+16 |
| | | | | | | | | | | | | redirection. For simplicity, it's all done in _redirect_output() and _restore_output(). | ||||
| * | Simplfied _redirect_output() by raising exception instead of returning bool | Kevin Van Brunt | 2020-04-11 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'master' into table_creator | Kevin Van Brunt | 2020-04-11 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Made some optional arguments with defaults keyword-only. | Kevin Van Brunt | 2020-04-11 | 1 | -1/+1 |
| | | | | | | | | | | Added unit test for echo argument to pyscript app() command. Removed _relative_load from hidden commands since that command was renamed. | ||||
* | | Initial commit of table creation API | Kevin Van Brunt | 2020-04-09 | 1 | -17/+56 |
|/ | |||||
* | Making build_settables() public again | Kevin Van Brunt | 2020-02-28 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into api_docs | kotfu | 2020-02-21 | 1 | -2/+2 |
|\ | |||||
| * | Removed hyphen from tab-completion | Kevin Van Brunt | 2020-02-21 | 1 | -2/+2 |
| | | |||||
* | | Embedded examples and cross-links for categorize() and with_category() | kotfu | 2020-02-20 | 1 | -1/+13 |
| | | |||||
* | | Fix merge error | kotfu | 2020-02-20 | 1 | -15/+0 |
| | | |||||
* | | Merge branch 'master' into api_docs | kotfu | 2020-02-20 | 1 | -2/+42 |
|\ \ | |/ | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md # cmd2/__init__.py # cmd2/decorators.py # docs/api/utility_functions.rst | ||||
| * | Moved categorize() to utils.py and made set_parser_prog() non-public | Kevin Van Brunt | 2020-02-20 | 1 | -0/+15 |
| | |