summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
* Added Cmd2ShlexErrorKevin Van Brunt2020-03-121-8/+11
|
* Changed name of exception class as requested in code reviewKevin Van Brunt2020-03-051-2/+2
|
* Prevent postcmd_hook from running when argparse failsKevin Van Brunt2020-03-051-8/+7
|
* Making build_settables() public againKevin Van Brunt2020-02-281-3/+3
|
* Clarify docstring for cmd_funckotfu2020-02-241-0/+7
|
* Revise docstring for _build_settableskotfu2020-02-241-1/+1
|
* Fix flake8 error.kotfu2020-02-221-10/+15
|
* 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
|
* Removed hyphen from tab-completionKevin Van Brunt2020-02-211-6/+6
|
* 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.
* Updated commentKevin Van Brunt2020-02-201-2/+3
|
* Renamed _autocomplete_default to _complete_argparse_commandKevin Van Brunt2020-02-191-4/+4
|
* Moved custom cmd2 exceptions to a separate file and removed them from public APITodd Leonhardt2020-02-181-10/+1
|
* 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
|
* Added apply_style to CompletionErrorKevin Van Brunt2020-02-181-3/+5
| | | | Simplified error class structure in argparse_completer.py
* Fixed issue where argparse completion errors were being rewrapped as ↵Kevin Van Brunt2020-02-181-1/+1
| | | | _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-171-2/+8
|
* Renamed AutoCompleter to ArgparseCompleter for clarityKevin Van Brunt2020-02-171-11/+11
|
* 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
|
* Fixed bug where pyscripts could edit cmd2.Cmd.py_locals dictionary.Kevin Van Brunt2020-02-141-45/+47
| | | | | | | | | Fixed bug where cmd2 set sys.path[0] for a pyscript to its cwd instead of the script's directory. Fixed bug where sys.path was not being restored after a pyscript ran. Setting the following pyscript variables: __name__: __main__ __file__: script path (as typed) Removed do_py.run() function since it didn't handle arguments and offered no benefit over run_pyscript.
* Renamed set command's -l/--long flag to -v/--verbose for consistency with ↵Kevin Van Brunt2020-02-101-2/+2
| | | | help and history commands
* Corrected issue where the actual new value was not always being printed in ↵Kevin Van Brunt2020-02-101-11/+9
| | | | | | | | do_set. Fixed do_set unit test. Made allow_ansi setter error message consistent with str_to_bool. Updated a docstring
* Updated documentationKevin Van Brunt2020-02-051-1/+1
|
* No longer displaying list of subcommands in usage text of alias and macroKevin Van Brunt2020-02-051-2/+2
|
* Fixing tab-completion hints when completing the value field of setKevin Van Brunt2020-02-051-1/+5
|
* Updated help textKevin Van Brunt2020-02-051-1/+1
|
* Added remove_settable() since cmd2 has add_settable()Kevin Van Brunt2020-02-051-0/+11
| | | | Documented Settable.onchange_cb
* Added support to do_set() for setting a parameter to an empty string as well ↵Kevin Van Brunt2020-02-051-3/+7
| | | | as something resembling an argparse flag (e.g. -h)
* Fixed missing parenthesisKevin Van Brunt2020-02-041-1/+1
|
* To support completer/choices functions that receive arg_tokens, changed ↵Kevin Van Brunt2020-02-041-26/+34
| | | | complete_set_value() to pass all tokens into its AutoCompleter
* Fixed a bug in a very unusual case and added some unit testsTodd Leonhardt2020-02-041-1/+2
|
* Updated CHANGELOG and made a few minor tweaksTodd Leonhardt2020-02-041-7/+3
|
* Updated set command to support tab completion of valuesKevin Van Brunt2020-02-041-94/+107
|
* Attempt to make "help -v" more discoverable by changing the default help textTodd Leonhardt2020-01-291-0/+3
|
* Addressed PR commentsTodd Leonhardt2020-01-271-2/+0
|
* Renamed locals_in_py to self_in_pyTodd Leonhardt2020-01-271-4/+4
| | | | This more accurately reflects what it controls
* Made three public attributes of cmd2.Cmd no longer settable at runtime by ↵Todd Leonhardt2020-01-271-8/+8
| | | | | | | | | end users The 3 attributes are: - continuation_prompt - locals_in_py - prompt
* Flushed out initialization documentationTodd Leonhardt2020-01-261-36/+36
| | | | | Also: - Rearranged some instance attributes in Cmd class to make it clear that they were not used by tab-completion functions.
* Improved responsiveness when setting windows title and printing alertsKevin Van Brunt2020-01-171-0/+2
|
* Updating some doc textKevin Van Brunt2020-01-161-1/+1
|
* Add comment for broken_pipe_warningkotfu2020-01-141-0/+1
|
* Move settable documentation from source code to api docskotfu2020-01-141-6/+0
|
* Remove attribute documentation for #821kotfu2020-01-141-22/+0
| | | | We will not try and have Sphnix extract attribute documentation from the source code, it will just live in the documentation.
* Merge branch 'master' into generating_output_docsTodd Leonhardt2020-01-091-41/+49
|\ | | | | | | | | | | # Conflicts: # docs/features/generating_output.rst # docs/features/settings.rst
| * Updated documentationKevin Van Brunt2020-01-071-1/+1
| |