Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add ability to remove commands and commandsets | Eric Lin | 2020-08-04 | 1 | -4/+46 |
| | | | | Issue #943 | ||||
* | Added new constructor parameter to flag whether commands should autoload. ↵ | Eric Lin | 2020-08-04 | 1 | -31/+83 |
| | | | | | | Added unit tests. Moved installing commands into separate functions that can be called Issue #943 | ||||
* | Some minor cleanup of how imports work. Fixed issue with help documentation ↵ | Eric Lin | 2020-08-04 | 1 | -4/+4 |
| | | | | | | for CommandSet commands. Issue #943 | ||||
* | Initial implementation of modular command loading | Eric Lin | 2020-08-04 | 1 | -2/+64 |
| | | | | | | | | | | Issue #943 New class CommandSet can be used to tag a class as a command class. If the constructor is simple, the object will automatically be instantiated and loaded. New register_command decorator to tag any arbitrary function as a command. | ||||
* | Added type annotations for fields in cmd2.Cmd. | Eric Lin | 2020-07-21 | 1 | -26/+27 |
| | | | | | | | Cleaned up docstring in external test plugin Updated some initialization to match new approach for version info discovery. Tagged some IDE-only lines as no-cover Adds plugin coverage reporting. | ||||
* | Fixed hook documentation | Kevin Van Brunt | 2020-07-17 | 1 | -4/+4 |
| | |||||
* | Merge branch 'master' into hint_bug | Kevin Van Brunt | 2020-06-01 | 1 | -24/+30 |
|\ | |||||
| * | Removed pwarning() calls when command raises SystemExit | Kevin Van Brunt | 2020-05-28 | 1 | -2/+0 |
| | | | | | | | | Added unit tests | ||||
| * | Made following changes to onecmd_plus_hooks() | Kevin Van Brunt | 2020-05-07 | 1 | -17/+25 |
| | | | | | | | | | | 1. Added SystemExit handling by warning the user it's occured and setting stop to True 2. KeyboardInterrupts won't be raised if stop is already set to True. | ||||
| * | Added SkipPostcommandHooks exception and made Cmd2ArgparseError inherit from it. | Kevin Van Brunt | 2020-05-07 | 1 | -7/+7 |
| | | | | | | | | Both exception classes have been added to the public API. | ||||
* | | Updated argparse_completer to use TableCreator for the hint table | Kevin Van Brunt | 2020-05-28 | 1 | -2/+2 |
|/ | |||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -7/+4 |
| | | | | | | | 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 | ||||
* | Merge branch 'master' into table_creator | Kevin Van Brunt | 2020-04-22 | 1 | -9/+8 |
|\ | |||||
| * | run_pyscript now passes a keyword arg to do_py instead of using a hidden ↵ | Kevin Van Brunt | 2020-04-21 | 1 | -9/+8 |
| | | | | | | | | argparse flag | ||||
* | | Merge branch 'master' into table_creator | Kevin Van Brunt | 2020-04-22 | 1 | -20/+46 |
|\ \ | |/ | |||||
| * | Updated error text | Kevin Van Brunt | 2020-04-20 | 1 | -4/+2 |
| | | |||||
| * | cmd2 now considers ipy a pyscript environment | Kevin Van Brunt | 2020-04-20 | 1 | -8/+17 |
| | | |||||
| * | Consistently use :raises: instead of :raises (make sure there is a trailing ↵ | Todd Leonhardt | 2020-04-20 | 1 | -3/+3 |
| | | | | | | | | colon) | ||||
| * | Fix doc build | Todd Leonhardt | 2020-04-20 | 1 | -1/+1 |
| | | |||||
| * | ipy now returns its PyBridge's stop value so the main loop can know to stop. ↵ | Kevin Van Brunt | 2020-04-20 | 1 | -10/+29 |
| | | | | | | | | This is consistent with the py command. | ||||
* | | Updated docs | Kevin Van Brunt | 2020-04-22 | 1 | -2/+2 |
|/ | |||||
* | Removed exception handling around tempfile.TemporaryFile() | Kevin Van Brunt | 2020-04-13 | 1 | -5/+1 |
| | |||||
* | onecmd_plus_hooks() no longer handles updating any state data related to ↵ | Kevin Van Brunt | 2020-04-12 | 1 | -41/+40 |
| | | | | | | 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 | -38/+34 |
| | |||||
* | Simplified onecmd_plus_hooks by reducing number of calls to ↵ | Kevin Van Brunt | 2020-04-11 | 1 | -6/+6 |
| | | | | _run_cmdfinalization_hooks() | ||||
* | Made some optional arguments with defaults keyword-only. | Kevin Van Brunt | 2020-04-11 | 1 | -3/+3 |
| | | | | | Added unit test for echo argument to pyscript app() command. Removed _relative_load from hidden commands since that command was renamed. | ||||
* | Removed the shebang from cmd2.py which was a hangover from when that file ↵ | Todd Leonhardt | 2020-04-08 | 1 | -1/+0 |
| | | | | formerly had a __main__ | ||||
* | Updated comment | Kevin Van Brunt | 2020-03-26 | 1 | -1/+1 |
| | |||||
* | Since runcode() catches most KeyboardInterrupts, just ignore any that make ↵ | Kevin Van Brunt | 2020-03-26 | 1 | -5/+3 |
| | | | | | | their way up to our code. This is more consistent than raising the rare few that we see. | ||||
* | Ctrl-C now stops a running text script instead of just the current script ↵ | Kevin Van Brunt | 2020-03-26 | 1 | -17/+33 |
| | | | | command | ||||
* | do_shell() now saves the return code of the command it runs in ↵ | Kevin Van Brunt | 2020-03-20 | 1 | -0/+3 |
| | | | | self.last_result for use in pyscripts | ||||
* | Added Cmd2ShlexError | Kevin Van Brunt | 2020-03-12 | 1 | -8/+11 |
| | |||||
* | Changed name of exception class as requested in code review | Kevin Van Brunt | 2020-03-05 | 1 | -2/+2 |
| | |||||
* | Prevent postcmd_hook from running when argparse fails | Kevin Van Brunt | 2020-03-05 | 1 | -8/+7 |
| | |||||
* | Making build_settables() public again | Kevin Van Brunt | 2020-02-28 | 1 | -3/+3 |
| | |||||
* | Clarify docstring for cmd_func | kotfu | 2020-02-24 | 1 | -0/+7 |
| | |||||
* | Revise docstring for _build_settables | kotfu | 2020-02-24 | 1 | -1/+1 |
| | |||||
* | Fix flake8 error. | kotfu | 2020-02-22 | 1 | -10/+15 |
| | |||||
* | Revisions and improvements for hooks and plugins | kotfu | 2020-02-22 | 1 | -10/+20 |
| | |||||
* | Make build_settables a private method. | kotfu | 2020-02-22 | 1 | -3/+3 |
| | |||||
* | Add stubs and documentation for parent methods. Fix #896 | kotfu | 2020-02-22 | 1 | -1/+42 |
| | |||||
* | Removed hyphen from tab-completion | Kevin Van Brunt | 2020-02-21 | 1 | -6/+6 |
| | |||||
* | Since CompletionError handling has been moved from ArgparseCompleter to ↵ | Kevin Van Brunt | 2020-02-21 | 1 | -4/+1 |
| | | | | | | complete(), there is no longer a need to suppress tab hints in the top-level parser for do_set. | ||||
* | Updated comment | Kevin Van Brunt | 2020-02-20 | 1 | -2/+3 |
| | |||||
* | Renamed _autocomplete_default to _complete_argparse_command | Kevin Van Brunt | 2020-02-19 | 1 | -4/+4 |
| | |||||
* | Moved custom cmd2 exceptions to a separate file and removed them from public API | Todd Leonhardt | 2020-02-18 | 1 | -10/+1 |
| | |||||
* | Redrawing the prompt when an exception occurs during tab completion | Kevin Van Brunt | 2020-02-18 | 1 | -0/+1 |
| | |||||
* | Updated change log and comment | Kevin Van Brunt | 2020-02-18 | 1 | -1/+1 |
| | |||||
* | Added apply_style to CompletionError | Kevin Van Brunt | 2020-02-18 | 1 | -3/+5 |
| | | | | Simplified error class structure in argparse_completer.py | ||||
* | Fixed issue where argparse completion errors were being rewrapped as ↵ | Kevin Van Brunt | 2020-02-18 | 1 | -1/+1 |
| | | | | _ActionCompletionError in some cases |