summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding unit tests for text alignment functionsKevin Van Brunt2019-12-091-16/+152
|
* Updated center_text to support ansi escape sequences and characters with ↵Kevin Van Brunt2019-12-091-14/+11
| | | | | | display widths greater than 1. Also added left and right justification functions.
* Added apply_style to pwarning()Kevin Van Brunt2019-11-231-0/+44
|
* Added unit test for overriding default parserKevin Van Brunt2019-11-191-0/+17
|
* Fixed bug where pipe processes were not being stopped by Ctrl-C on WindowsKevin Van Brunt2019-11-181-9/+22
|
* Updating unit testsKevin Van Brunt2019-11-171-0/+12
|
* Updating unit testsKevin Van Brunt2019-11-171-0/+18
|
* Updating unit testsKevin Van Brunt2019-11-171-118/+74
|
* Updating unit testsKevin Van Brunt2019-11-161-43/+45
|
* Put an end time for timeout command just as a precautionKevin Van Brunt2019-11-121-2/+2
|
* Fixing unit tests that were causing problems on the test serversKevin Van Brunt2019-11-121-13/+4
|
* Fixing Windows unit test that hangs on AppVeyor due to a KeyboardInterruptKevin Van Brunt2019-11-121-2/+13
|
* Made some cmd2 module constants cmd2.Cmd class constantsKevin Van Brunt2019-10-311-2/+2
|
* Moving a bit of code around to shrink cmd2.pyKevin Van Brunt2019-10-311-2/+2
| | | | | This includes moving cmd2 decorators into a new file called decorators.py Moved some constants from cmd2.py to constants.py
* Merge branch 'master' into set_progTodd Leonhardt2019-10-301-14/+3
|\ | | | | | | | | # Conflicts: # CHANGELOG.md
| * do_history no longer calls do_edit since edit is a command that is commonly ↵Kevin Van Brunt2019-10-301-14/+3
| | | | | | | | overridden
* | Removed all instances where a parser's prog attribute was being set since ↵Kevin Van Brunt2019-10-304-19/+19
|/ | | | this is no longer needed
* 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
|/