summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| |
| * Renamed ansi_safe_wcswidth() to style_aware_wcswidth()Kevin Van Brunt2019-12-191-5/+5
| | | | | | | | Renamed ansi_aware_write() to style_aware_write()
| * Merge branch 'master' into ansi_to_styleKevin Van Brunt2019-12-191-1/+1
| |\
| | * Fixed bug where startup script containing a single quote in its file name ↵Kevin Van Brunt2019-12-171-1/+1
| | | | | | | | | | | | was incorrectly quoted
| * | Changed allow_ansi to allow_style for accuracy in what types of ANSI escape ↵Kevin Van Brunt2019-12-191-24/+24
| |/ | | | | | | sequences are handled
| * Took out more rstrip() calls that are no longer neeededKevin Van Brunt2019-12-101-2/+2
| |
| * Renamed functions based on code review comments. Fixed Python warnings.Kevin Van Brunt2019-12-091-2/+7
| |
| * Updated center_text to support ansi escape sequences and characters with ↵Kevin Van Brunt2019-12-091-3/+3
| | | | | | | | | | | | display widths greater than 1. Also added left and right justification functions.
| * Removed redundant line of codeKevin Van Brunt2019-12-061-1/+0
| |
| * Enabled line buffering when redirecting output to a fileKevin Van Brunt2019-12-051-6/+10
| |
* | Merge branch 'master' into generating_output_docskotfu2019-12-051-11/+15
|\ \ | |/ | | | | | | # Conflicts: # cmd2/ansi.py
| * Added self to perror() for consistency and ease of overridingKevin Van Brunt2019-12-031-7/+7
| | | | | | | | poutput(), perror(), and pwarning() can now be called with no args
| * Gave names to parser variables for a few commands so developers overriding ↵Kevin Van Brunt2019-12-021-4/+8
| | | | | | | | these commands can use the parsers
* | Finish documenting settings and add new builtin_commands documentkotfu2019-11-291-0/+6
| |
* | Show various attribute documentation approaches for #821kotfu2019-11-291-3/+10
| |
* | Merge branch 'master' into generating_output_docskotfu2019-11-291-16/+13
|\ \ | |/
| * Renamed some parser arguments to make it more obvious they can accept more ↵Kevin Van Brunt2019-11-281-12/+12
| | | | | | | | than 1 value
| * Added exception handling to account for non-standard Python environments in ↵Kevin Van Brunt2019-11-241-4/+1
| | | | | | | | which readline is not loaded dynamically from a shared library file
* | Show various options for documenting attributeskotfu2019-11-291-1/+15
|/
* Added apply_style to pwarning()Kevin Van Brunt2019-11-231-4/+7
|