summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* ipy now returns its PyBridge's stop value so the main loop can know to stop. ↵Kevin Van Brunt2020-04-201-10/+29
| | | | This is consistent with the py command.
* Removed exception handling around tempfile.TemporaryFile()Kevin Van Brunt2020-04-131-5/+1
|
* onecmd_plus_hooks() no longer handles updating any state data related to ↵Kevin Van Brunt2020-04-122-51/+56
| | | | | | redirection. For simplicity, it's all done in _redirect_output() and _restore_output().
* Simplfied _redirect_output() by raising exception instead of returning boolKevin Van Brunt2020-04-113-39/+40
|
* Simplified onecmd_plus_hooks by reducing number of calls to ↵Kevin Van Brunt2020-04-111-6/+6
| | | | _run_cmdfinalization_hooks()
* Made some optional arguments with defaults keyword-only.Kevin Van Brunt2020-04-113-9/+10
| | | | | 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 Leonhardt2020-04-081-1/+0
| | | | formerly had a __main__
* Updated commentKevin Van Brunt2020-03-261-1/+1
|
* Since runcode() catches most KeyboardInterrupts, just ignore any that make ↵Kevin Van Brunt2020-03-261-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 Brunt2020-03-261-17/+33
| | | | command
* do_shell() now saves the return code of the command it runs in ↵Kevin Van Brunt2020-03-201-0/+3
| | | | self.last_result for use in pyscripts
* Added Cmd2ShlexErrorKevin Van Brunt2020-03-124-18/+32
|
* Changed name of exception class as requested in code reviewKevin Van Brunt2020-03-053-7/+7
|
* Prevent postcmd_hook from running when argparse failsKevin Van Brunt2020-03-053-10/+15
|
* Making build_settables() public againKevin Van Brunt2020-02-282-4/+4
|
* Removed duplicate word and capitalized two comment sentencesKevin Van Brunt2020-02-252-3/+3
|
* Clarify docstring for cmd_funckotfu2020-02-241-0/+7
|
* Revise docstring for _build_settableskotfu2020-02-241-1/+1
|
* standardize language on ‘ansi style sequences’kotfu2020-02-241-9/+9
|
* Revise table of contents to include a description of each modulekotfu2020-02-241-1/+1
|
* Add examples to argpars decoratorskotfu2020-02-241-3/+31
|
* Fix flake8 error.kotfu2020-02-221-10/+15
|
* Add py_bridge API documentationkotfu2020-02-221-18/+24
|
* Add argparse stuff to apikotfu2020-02-221-142/+173
|
* Revisions and improvements for hooks and pluginskotfu2020-02-221-10/+20
|
* Make build_settables a private method.kotfu2020-02-221-3/+3
|
* Add stubs and documentation for parent methods. Fix #896kotfu2020-02-221-1/+42
|
* Merge branch 'master' into api_docskotfu2020-02-212-12/+9
|\
| * Removed hyphen from tab-completionKevin Van Brunt2020-02-212-8/+8
| |
| * Since CompletionError handling has been moved from ArgparseCompleter to ↵Kevin Van Brunt2020-02-211-4/+1
| | | | | | | | | | | | complete(), there is no longer a need to suppress tab hints in the top-level parser for do_set.
* | plugin and hook documentation updateskotfu2020-02-201-0/+4
| | | | | | | | | | | | - add api documentation for plugin data classes - update hook and plugin documentation to link to now documented api classes
* | Add history api documentationkotfu2020-02-201-16/+26
| |
* | Embedded examples and cross-links for categorize() and with_category()kotfu2020-02-202-1/+16
| |
* | Fix merge errorkotfu2020-02-201-15/+0
| |
* | Merge branch 'master' into api_docskotfu2020-02-207-253/+260
|\ \ | |/ | | | | | | | | | | | | # Conflicts: # CHANGELOG.md # cmd2/__init__.py # cmd2/decorators.py # docs/api/utility_functions.rst
| * Updated commentKevin Van Brunt2020-02-201-2/+3
| |
| * Moved categorize() to utils.py and made set_parser_prog() non-publicKevin Van Brunt2020-02-203-22/+23
| |
| * Renamed _autocomplete_default to _complete_argparse_commandKevin Van Brunt2020-02-191-4/+4
| |
| * Oops forgot to commit a fileTodd Leonhardt2020-02-181-0/+12
| |
| * Moved custom cmd2 exceptions to a separate file and removed them from public APITodd Leonhardt2020-02-182-11/+2
| |
| * Redrawing the prompt when an exception occurs during tab completionKevin Van Brunt2020-02-181-0/+1
| |
| * Updated change log and commentKevin Van Brunt2020-02-181-1/+1
| |
| * Removed extra new line in error messageKevin Van Brunt2020-02-181-1/+1
| |
| * Added apply_style to CompletionErrorKevin Van Brunt2020-02-183-48/+32
| | | | | | | | Simplified error class structure in argparse_completer.py
| * Fixed issue where argparse completion errors were being rewrapped as ↵Kevin Van Brunt2020-02-182-8/+17
| | | | | | | | _ActionCompletionError in some cases
| * Updated unit testKevin Van Brunt2020-02-171-0/+1
| |
| * Made CompletionError exception available to non-argparse tab completionKevin Van Brunt2020-02-175-145/+134
| |
| * Renamed AutoCompleter to ArgparseCompleter for clarityKevin Van Brunt2020-02-174-40/+40
| |
| * Only tab complete after redirection tokens if redirection is allowedKevin Van Brunt2020-02-171-2/+2
| |
| * Updated documentation and testsKevin Van Brunt2020-02-171-1/+3
| |