summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Replaced unicode escape sequence for horizontal ellipsis with actual characterKevin Van Brunt2020-02-111-1/+3
|
* Fix optional type hintTodd Leonhardt2020-02-111-2/+2
| | | | typing.OrderedDict wasn't added until Python 3.7.2; so replace with Dict.
* Allowing for colored fill char in align_textKevin Van Brunt2020-02-111-14/+34
| | | | Added function to index all style sequences found in a string
* WhitespaceKevin Van Brunt2020-02-111-0/+1
|
* Fixed bug where ANSI style sequences were not correctly handled in ↵Kevin Van Brunt2020-02-112-17/+62
| | | | utils.truncate_line()
* 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
* Fixed docs errorKevin Van Brunt2020-02-071-1/+2
|
* Updated plumbum exampleKevin Van Brunt2020-02-071-9/+10
|
* Added __str__() back to ColorBase for more flexibility in its usageKevin Van Brunt2020-02-071-4/+18
| | | | Updated documentation and added unit tests
* Simplified ColorBase.__add__()Kevin Van Brunt2020-02-071-6/+0
|
* Corrected docstringKevin Van Brunt2020-02-071-1/+1
|
* Support using fg and bg enum in + operations to build color stringsKevin Van Brunt2020-02-071-16/+33
|
* Removed unnecessary methods from fg and bg color enumsTodd Leonhardt2020-02-071-20/+2
|
* Simplified fg's and bg's get_value()Kevin Van Brunt2020-02-071-2/+2
|
* Removed repeated Pycharm warning suppressionKevin Van Brunt2020-02-071-1/+1
|
* Renamed argument from color to name for fg.get_value() and bg.get_value()Todd Leonhardt2020-02-061-4/+4
|
* Suppressed bogus PyCharm warnings and improved error message for invalid ↵Todd Leonhardt2020-02-061-2/+6
| | | | colors passed to style
* Having two parallel datastructures each for foreground and background colors ↵Todd Leonhardt2020-02-061-49/+27
| | | | | | felt really clunky - now we just have one The Enum classes are now smart and deal with it all.
* Added convenience `ansi.fg` and `ansi.bg` enums of foreground and background ↵Todd Leonhardt2020-02-062-13/+73
| | | | | | colors which style() can now optionally use This is to make it easier to autocomplete color names in an IDE
* 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
|
* Added more to Settable docstringKevin Van Brunt2020-02-051-2/+9
|
* Added more to onchange_cb documentationKevin Van Brunt2020-02-051-3/+7
|
* Updated help textKevin Van Brunt2020-02-051-1/+1
|
* Added remove_settable() since cmd2 has add_settable()Kevin Van Brunt2020-02-052-4/+18
| | | | Documented Settable.onchange_cb
* Updated documentationKevin Van Brunt2020-02-051-2/+4
|
* 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
* Removed unnecessary inheritance from objectKevin Van Brunt2020-02-043-8/+8
|
* Added cmd2.utils.Settable to the cmd2 namespace and updated examples and docsTodd Leonhardt2020-02-041-0/+1
|
* Fixed a bug in a very unusual case and added some unit testsTodd Leonhardt2020-02-042-5/+7
|
* Updated CHANGELOG and made a few minor tweaksTodd Leonhardt2020-02-042-44/+8
|
* Updated set command to support tab completion of valuesKevin Van Brunt2020-02-042-97/+165
|
* 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.
* Import ABC from collections.abc instead of collections for Python 3.9 ↵Karthikeyan Singaravelan2020-01-221-2/+3
| | | | compatibility.
* Renamed functionKevin Van Brunt2020-01-171-14/+14
|
* Updating unit testsKevin Van Brunt2020-01-171-2/+2
|
* Added string truncation function and support for it in the alignment functionsKevin Van Brunt2020-01-171-14/+71
|
* 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
|
* Updating docs for default style functionsKevin Van Brunt2020-01-161-3/+3
|
* Add comment for broken_pipe_warningkotfu2020-01-141-0/+1
|
* Clean up function documentation so it renders properlykotfu2020-01-141-3/+7
|