summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Added commentKevin Van Brunt2019-09-301-1/+1
|
* Wrote unit testsKevin Van Brunt2019-09-301-9/+72
|
* Simplifying tab completion message printingKevin Van Brunt2019-09-301-19/+1
|
* Added unit testsKevin Van Brunt2019-09-241-0/+25
|
* Added in_script() and in_pyscript() to cmd2.Cmd classKevin Van Brunt2019-09-231-1/+19
|
* Added unit tests for CompletionErrorKevin Van Brunt2019-09-231-1/+41
|
* No longer printing all help text for alias and macro when the subcommand is ↵Kevin Van Brunt2019-09-173-5/+7
| | | | omitted. Instead allow argparse to handle the error.
* Fixed unit tests on Python versions older than 3.7Kevin Van Brunt2019-09-161-3/+3
|
* Added unit test to override a parameter in a parent parserKevin Van Brunt2019-09-161-0/+6
|
* Updated arg_tokens unit testsKevin Van Brunt2019-09-161-50/+15
|
* Changed arg_tokens to a dictionaryKevin Van Brunt2019-09-161-9/+9
| | | | Including tokens from parent parsers in arg_tokens when subcommands are used
* Fixed issue where invalid subcommand token was ignored when tab completing helpKevin Van Brunt2019-09-131-0/+1
|
* Increased code coverageKevin Van Brunt2019-09-131-1/+2
|
* Added unit tests for arg_tokensKevin Van Brunt2019-09-131-0/+57
|
* Merge branch 'master' into completion_stateKevin Van Brunt2019-09-071-1/+1
|\
| * Make pyperclip failure error message more specificTodd Leonhardt2019-09-041-1/+1
| |
* | AutoCompleter only passes parsed_args to choices/completer functions that ↵Kevin Van Brunt2019-08-271-5/+5
| | | | | | | | have an argument called 'parsed_args'
* | AutoCompleter now passes parsed_args to all choices and completer functionsKevin Van Brunt2019-08-221-5/+5
| |
* | Added capability for an argparse-based command's completer/choice functions ↵Kevin Van Brunt2019-08-131-12/+4
| | | | | | | | | | | | | | to receive a namespace of all arguments parsed up to token being completed. This will make it easier to have a previous argument's value affect what data is tab-completed.
* | Replaced AutoCompleter._positional_completers since an ArgumentParser can ↵Kevin Van Brunt2019-08-121-1/+1
|/ | | | | | only have one level of subcommands No longer creating AutoCompleters for all subcommands each time tab is pressed
* No longer treating empty text scripts as an error conditionKevin Van Brunt2019-08-081-1/+1
|
* Do not print traceback warning text if debug is not a settable parameterKevin Van Brunt2019-08-081-0/+11
|
* Merge branch 'master' into verify_command_namesTodd Leonhardt2019-08-071-1/+16
|\
| * Disabled tab completion during a select call.Kevin Van Brunt2019-08-071-1/+16
| | | | | | | | Added graceful handling of Ctrl-D during select. It now reprompts the user.
* | Verifying command names in __init__Kevin Van Brunt2019-08-071-0/+4
|/
* Removed ability for aliases and macros to share names with commandsKevin Van Brunt2019-08-052-46/+8
|
* Added functions to manually add choice providing functions to an argparse ↵Kevin Van Brunt2019-08-051-7/+18
| | | | action.
* Updated unit testsKevin Van Brunt2019-08-021-7/+8
|
* Fixed inconsistent parsing/tab completion behavior based on the value of ↵Kevin Van Brunt2019-08-024-18/+1
| | | | | | `allow_redirection`. This flag is only meant to be a security setting that prevents redirection of stdout and should not alter parsing logic.
* Merge branch 'master' into make_history_directoryKevin Van Brunt2019-07-301-4/+17
|\
| * Raising exception when a choices or completer function is used for an ↵Kevin Van Brunt2019-07-291-4/+17
| | | | | | | | argument that takes no values
* | Added unit testKevin Van Brunt2019-07-291-0/+21
| |
* | Creating directory of persistent history file if it does not existKevin Van Brunt2019-07-291-2/+11
|/
* Fixed unit test on WindowsKevin Van Brunt2019-07-241-4/+4
|
* Updated unit testsKevin Van Brunt2019-07-242-11/+14
|
* Added unit testsKevin Van Brunt2019-07-241-8/+35
|
* Added unit testsKevin Van Brunt2019-07-243-4/+65
|
* Fixed a few commands that would have failed if arguments containing quotes ↵Kevin Van Brunt2019-07-241-1/+1
| | | | were used
* Fixed bug where completer function of disabled command would still runKevin Van Brunt2019-07-241-33/+78
|
* Removed restriction on macros named after non-multiline commandsKevin Van Brunt2019-07-231-3/+36
| | | | Added unit tests
* Increased coverageKevin Van Brunt2019-07-231-5/+10
|
* Fixed issue where run_pyscript failed if the script's filename had a spaceKevin Van Brunt2019-07-237-23/+32
|
* Changed error messagesKevin Van Brunt2019-07-211-2/+2
|
* Added unit testKevin Van Brunt2019-07-211-0/+15
|
* Changed warning textKevin Van Brunt2019-07-211-1/+1
|
* Added unit testKevin Van Brunt2019-07-211-1/+17
|
* Added mock to unit testKevin Van Brunt2019-07-201-0/+3
|
* Added unit test for run_scriptKevin Van Brunt2019-07-201-0/+6
|
* Fixed unit testsKevin Van Brunt2019-07-201-6/+15
|
* Renamed PyscriptBridge to PyBridgeKevin Van Brunt2019-07-201-1/+1
|