summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Send all startup script paths to run_script. Previously we didn't do this if theKevin Van Brunt2019-10-181-2/+2
| | | | file was empty, but that showed no record of the run_script command in history.
* Fixed a commentTodd Leonhardt2019-10-081-1/+1
|
* Fixed ValueError exception which can occur when opening an old format ↵Todd Leonhardt2019-10-071-1/+2
| | | | persistent history file with a new version of cmd2
* AutoCompleter now handles mutually exclusive groupsKevin Van Brunt2019-09-271-1/+1
|
* Fixed bug introduced by get_names() looking at self instead of self.__class__.Kevin Van Brunt2019-09-241-16/+9
| | | | Help functions for hidden and disabled commands were not being filtered out as help topics.
* Added in_script() and in_pyscript() to cmd2.Cmd classKevin Van Brunt2019-09-231-7/+15
|
* Gave startup_script a default of '' instead of NoneKevin Van Brunt2019-09-201-2/+2
|
* No longer printing all help text for alias and macro when the subcommand is ↵Kevin Van Brunt2019-09-171-23/+17
| | | | omitted. Instead allow argparse to handle the error.
* Merge branch 'master' into completion_stateKevin Van Brunt2019-09-161-0/+4
|\
| * Modified get_names() method to allow dynamically adding do_* commands to ↵Todd Leonhardt2019-09-151-0/+4
| | | | | | | | instances at runtime
* | Changed arg_tokens to a dictionaryKevin Van Brunt2019-09-161-3/+3
| | | | | | | | Including tokens from parent parsers in arg_tokens when subcommands are used
* | Merge branch 'completion_state' of github.com:python-cmd2/cmd2 into ↵Kevin Van Brunt2019-09-131-1/+1
|\ \ | | | | | | | | | completion_state
| * \ Merge branch 'master' into completion_stateKevin Van Brunt2019-09-071-1/+1
| |\ \ | | |/
| | * Make pyperclip failure error message more specificTodd Leonhardt2019-09-041-1/+1
| | |
* | | Change parsed_args to arg_tokensKevin Van Brunt2019-09-131-12/+7
|/ / | | | | | | Including the token being completed in arg_tokens
* | AutoCompleter only passes parsed_args to choices/completer functions that ↵Kevin Van Brunt2019-08-271-16/+11
| | | | | | | | have an argument called 'parsed_args'
* | AutoCompleter now passes parsed_args to all choices and completer functionsKevin Van Brunt2019-08-221-14/+18
| |
* | Fixed warningKevin Van Brunt2019-08-131-4/+1
| |
* | Added capability for an argparse-based command's completer/choice functions ↵Kevin Van Brunt2019-08-131-28/+18
| | | | | | | | | | | | | | 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.
* | Accounting for value of preserve_quotes when parsing for argparse tab completionKevin Van Brunt2019-08-131-7/+17
| |
* | 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
* Small change for consistent code style in methodKevin Van Brunt2019-08-091-1/+1
|
* No longer treating empty text scripts as an error conditionKevin Van Brunt2019-08-081-2/+1
|
* Fixed commentsKevin Van Brunt2019-08-081-3/+4
|
* Do not print traceback warning text if debug is not a settable parameterKevin Van Brunt2019-08-081-1/+1
|
* Corrected docstringKevin Van Brunt2019-08-081-1/+1
|
* Merge branch 'master' into verify_command_namesTodd Leonhardt2019-08-071-4/+40
|\
| * Disabled tab completion during a select call.Kevin Van Brunt2019-08-071-4/+40
| | | | | | | | Added graceful handling of Ctrl-D during select. It now reprompts the user.
* | Fixed flake8 errorKevin Van Brunt2019-08-071-3/+3
| |
* | Verifying command names in __init__Kevin Van Brunt2019-08-071-0/+6
|/
* Removed ability for aliases and macros to share names with commandsKevin Van Brunt2019-08-051-27/+18
|
* Added terminators to completion delimitersKevin Van Brunt2019-08-021-51/+4
|
* Fixed inconsistent parsing/tab completion behavior based on the value of ↵Kevin Van Brunt2019-08-021-119/+103
| | | | | | `allow_redirection`. This flag is only meant to be a security setting that prevents redirection of stdout and should not alter parsing logic.
* Added terminators to cmd2.Cmd's docstringKevin Van Brunt2019-08-011-5/+10
|
* Creating directory of persistent history file if it does not existKevin Van Brunt2019-07-291-5/+15
|
* Added unit testsKevin Van Brunt2019-07-241-0/+1
|
* Added unit testsKevin Van Brunt2019-07-241-2/+4
|
* Fixed a few commands that would have failed if arguments containing quotes ↵Kevin Van Brunt2019-07-241-6/+6
| | | | were used
* Fixed bug where completer function of disabled command would still runKevin Van Brunt2019-07-241-4/+20
|
* Tab completion of macros should occur before completion of commands with the ↵Kevin Van Brunt2019-07-241-7/+7
| | | | same name
* Removed restriction on macros named after non-multiline commandsKevin Van Brunt2019-07-231-4/+3
| | | | Added unit tests
* Fixed quoting issueKevin Van Brunt2019-07-231-2/+6
|
* Suppressed some warningsKevin Van Brunt2019-07-231-3/+12
|
* Updated docstringsKevin Van Brunt2019-07-231-6/+6
|
* Fixed issue where some calls could have failed if the strings had spacesKevin Van Brunt2019-07-231-3/+3
|
* Fixed issue where run_pyscript failed if the script's filename had a spaceKevin Van Brunt2019-07-231-36/+53
|
* Added descriptions to some parsers to make them not rely on the docstringKevin Van Brunt2019-07-231-6/+7
|
* Added to a few methods to prevent the command token from being expandedKevin Van Brunt2019-07-231-18/+34
|
* Updated help textKevin Van Brunt2019-07-211-1/+1
|
* Changed error messagesKevin Van Brunt2019-07-211-2/+2
|