summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Merge branch 'master' into 2.0Kevin Van Brunt2021-01-281-4/+13
| |\ \ \
| * | | | Removed with_argparser_and_unknown_args since it was deprecated in 1.3.0.Kevin Van Brunt2021-01-222-2/+2
| | | | |
| * | | | Removed --silent flag from alias/macro create since startup scripts can be ↵Kevin Van Brunt2021-01-221-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | run silently. Removed --with_silent flag from alias/macro list since startup scripts can be run silently.
| * | | | Merge branch 'master' into 2.0Kevin Van Brunt2021-01-2213-88/+146
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into 2.0Todd Leonhardt2020-11-212-18/+59
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-11-121-0/+1
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch 'master' into 2.0Todd Leonhardt2020-11-111-10/+28
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # CHANGELOG.md
| * \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-172-0/+37
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Moved two classes from cmd2.py to utils.py.Kevin Van Brunt2020-09-091-1/+0
| | | | | | | | | |
| * | | | | | | | | Merge branch '2.0' into read_inputKevin Van Brunt2020-09-091-26/+44
| |\ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-091-26/+44
| | |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Updated unit tests for read_input()Kevin Van Brunt2020-09-052-0/+37
| | | | | | | | | | | |
| * | | | | | | | | | | Merge branch '2.0' into read_inputKevin Van Brunt2020-09-053-34/+73
| |\ \ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / /
| | * | | | | | | | | | Merge branch 'master' into 2.0Kevin Van Brunt2020-09-053-34/+73
| | |\ \ \ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-09-031-4/+4
| | |\ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | Refactored ArgparseCompleter to support custom completionKevin Van Brunt2020-09-011-6/+6
| | | | | | | | | | | | | |
| * | | | | | | | | | | | | Refactored complete() to handle custom behavior from read_input()Kevin Van Brunt2020-08-312-6/+6
| |/ / / / / / / / / / / /
| * | | | | | | | | | | | Merge branch 'master' into 2.0Kevin Van Brunt2020-08-282-9/+54
| |\ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-08-273-4/+13
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-08-252-1/+24
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| * \ \ \ \ \ \ \ \ \ \ \ \ \ \ Merge branch 'master' into 2.0Kevin Van Brunt2020-08-202-20/+149
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | | | Documented support for standalone functions being used as completers and ↵Kevin Van Brunt2020-08-181-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | choices_providers. Added unit tests for this case.
| * | | | | | | | | | | | | | | | Replaced choices_function / choices_method with choices_provider.Kevin Van Brunt2020-08-133-136/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced completer_function / completer_method with completer. ArgparseCompleter now always passes cmd2.Cmd or CommandSet instance as the self argument to choices_provider and completer functions. Moved basic_complete from utils into cmd2.Cmd class. Moved CompletionError to exceptions.py
* | | | | | | | | | | | | | | | | Add in isort changesTodd Leonhardt2021-01-3114-55/+171
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Attempt to fix remaining black failuresTodd Leonhardt2021-01-316-19/+113
| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | Add black for automatic code formatTodd Leonhardt2021-01-3116-989/+1592
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | Remove all use of AppVeyor for Windows testing because it is slower than ↵Todd Leonhardt2021-01-301-2/+0
| |_|_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GitHub Actions for the same purpose
* | | | | | | | | | | | | | | Printing error when OSError other than FileNotFoundError occurs when ↵Kevin Van Brunt2021-01-291-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deleting persistent history file with history --clear command.
* | | | | | | | | | | | | | | Added more validation to TableCreatorKevin Van Brunt2021-01-291-0/+4
| | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | Fixed width calculation when table column headers had tabsKevin Van Brunt2021-01-281-12/+30
| |_|_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | |
* | | | | | | | | | | | | | Added option to run startup scripts silentlyKevin Van Brunt2021-01-221-4/+13
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | |
* | | | | | | | | | | | | Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-2213-40/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | minor import changes.
* | | | | | | | | | | | | Skip a test which is failing on Python 3.8 and 3.9 for now to fix a unit testTodd Leonhardt2021-01-211-0/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | Fix unit test that was failing when EDITOR environment variable was seteditorsTodd Leonhardt2020-11-211-2/+2
| | | | | | | | | | | | |
* | | | | | | | | | | | | Updated utils.find_editor() to include more Windows editorsKevin Van Brunt2020-11-191-49/+12
| |_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | |
* | | | | | | | | | | | feat(utils): probe editors in system pathMikhail Ushanov2020-11-172-18/+59
| |_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com>
* | | | | | | | | | | Fixed bug where setting always_show_hint=True did not show a hint when ↵settable_hintKevin Van Brunt2020-11-121-0/+1
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | completing Settables
* | | | | | | | | | Format multiline docstrings to match other help messagesBambu2020-10-091-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed cmd2 do_cmd to dedent docstrings using `pydoc.getdoc`. This patch provides output for docstrings that look like using argparse or a single line docstring
* | | | | | | | | | Fixed issue where quoted redirectors and terminators in aliases and macros ↵Kevin Van Brunt2020-09-301-10/+13
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | were not being restored when read from a startup script.
* | | | | | | | | Merge branch 'master' into silenceKevin Van Brunt2020-09-171-0/+7
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Minor type hinting fixes.Eric Lin2020-09-111-0/+7
| | |_|_|_|_|_|_|/ | |/| | | | | | |
* | | | | | | | | Added --silent flag to alias/macro create.Kevin Van Brunt2020-09-101-0/+30
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | Added --with_silent flag to alias/macro list.
* | | | | | | | argparse tab completion now groups flag names which run the same action. ↵Kevin Van Brunt2020-09-091-26/+44
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optional flags are wrapped in brackets like it is done in argparse usage text.
* | | | | | | Added always_show_hint settingKevin Van Brunt2020-09-053-11/+48
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion
* | | | | | Added unit tests for CommandSet callbacksKevin Van Brunt2020-09-011-4/+4
| |_|_|_|/ |/| | | |
* | | | | Fixed issue where subcommand added with @as_subcommand_to decorator did not ↵Kevin Van Brunt2020-08-271-9/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | display help when called with -h/--help. 'add_help=False' no longer has to be passed to parsers used in @as_subcommand_to decorator.
* | | | | the with_argparse() decorator was incorrectly using a parsed statement ↵1.3.7Eric Lin2020-08-271-0/+17
| |_|_|/ |/| | | | | | | | | | | object to search for the original function arguments. Switched to search for the original statement value instead
* | | | The functions cmd2 adds to Namespaces (get_statement() and get_handler()) ↵Kevin Van Brunt2020-08-263-4/+13
| |_|/ |/| | | | | | | | | | | | | | | | | are now Cmd2AttributeWrapper objects named cmd2_statement and cmd2_handler. This makes it easy to filter out which attributes in an argparse.Namespace were added by cmd2.
* | | Fixed RecursionError when printing an argparse.Namespace caused by custom ↵Kevin Van Brunt2020-08-252-1/+24
| |/ |/| | | | | | | | | attribute cmd2 was adding Added get_statement() function to argparse.Namespace which returns __statement__ attribute
* | Added tests for invalid subcommandsEric Lin2020-08-201-0/+63
| |