summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
| * 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.
* | Add API documentation for constantskotfu2020-02-151-3/+7
| |
* | Add documentation for parsing classeskotfu2020-02-142-122/+104
| |
* | move `categorize()` to `utils.py` and make `set_parser_prog` a private methodkotfu2020-02-143-21/+22
| |
* | Merge branch 'master' into api_docskotfu2020-02-146-57/+115
|\ \ | |/ | | | | | | | | # Conflicts: # cmd2/ansi.py # docs/features/completion.rst
| * Using metavar in CompletionItem header if it has been setKevin Van Brunt2020-02-131-2/+4
| |
| * Removed dash from 'tab complete' stringKevin Van Brunt2020-02-131-7/+7
| |
| * 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
* | Add example to with_argument_list docstringkotfu2020-02-101-3/+13
| |
* | All public api functions now documentedkotfu2020-02-081-3/+45
|/
* 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
|