summaryrefslogtreecommitdiff
path: root/cmd2
Commit message (Collapse)AuthorAgeFilesLines
* Added in_script() and in_pyscript() to cmd2.Cmd classKevin Van Brunt2019-09-231-7/+15
|
* Added unit tests for CompletionErrorKevin Van Brunt2019-09-231-3/+10
|
* Finished implementation of CompletionErrorKevin Van Brunt2019-09-231-30/+62
|
* Gave startup_script a default of '' instead of NoneKevin Van Brunt2019-09-201-2/+2
|
* Added CompletionError exception classKevin Van Brunt2019-09-202-1/+12
|
* 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-163-29/+42
| | | | | | | | Including tokens from parent parsers in arg_tokens when subcommands are used
* | Fixed issue where invalid subcommand token was ignored when retrieving help textKevin Van Brunt2019-09-131-3/+4
| |
* | Fixed issue where invalid subcommand token was ignored when tab completing helpKevin Van Brunt2019-09-131-2/+3
| |
* | Updated documentationKevin Van Brunt2019-09-131-0/+14
| |
* | Merge branch 'completion_state' of github.com:python-cmd2/cmd2 into ↵Kevin Van Brunt2019-09-132-2/+3
|\ \ | | | | | | | | | completion_state
| * \ Merge branch 'master' into completion_stateKevin Van Brunt2019-09-072-2/+3
| |\ \ | | |/
| | * Make pyperclip failure error message more specificTodd Leonhardt2019-09-041-1/+1
| | |
| | * Fix what is fundamentally a Pyperclip bug on headless Linux systems without ↵Todd Leonhardt2019-09-021-1/+2
| | | | | | | | | | | | Gtk libraries
* | | Change parsed_args to arg_tokensKevin Van Brunt2019-09-132-20/+21
|/ / | | | | | | Including the token being completed in arg_tokens
* | Updated commentKevin Van Brunt2019-08-271-2/+3
| |
* | AutoCompleter only passes parsed_args to choices/completer functions that ↵Kevin Van Brunt2019-08-274-34/+34
| | | | | | | | have an argument called 'parsed_args'
* | AutoCompleter now passes parsed_args to all choices and completer functionsKevin Van Brunt2019-08-224-53/+42
| |
* | Added parser to parsed_args namespaceKevin Van Brunt2019-08-211-0/+1
| |
* | Fixed commentKevin Van Brunt2019-08-191-1/+1
| |
* | Merge branch 'master' into completion_stateKevin Van Brunt2019-08-171-1/+2
|\ \ | |/
| * Fixed a bug when using WSL when all Windows paths have been removed from $PATHTodd Leonhardt2019-08-121-1/+2
| |
* | Renamed some variablesKevin Van Brunt2019-08-131-3/+3
| |
* | Now adding flags with no arguments to consumed_arg_values. This way ↵Kevin Van Brunt2019-08-131-10/+16
| | | | | | | | | | | | completer/choice functions that receive parsed_args will still know a flag was used.
* | Combined 2 functionsKevin Van Brunt2019-08-131-57/+43
| |
* | Fixed warningKevin Van Brunt2019-08-131-4/+1
| |
* | Added capability for an argparse-based command's completer/choice functions ↵Kevin Van Brunt2019-08-133-69/+71
| | | | | | | | | | | | | | 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-122-38/+30
| | | | | | | | | | | | only have one level of subcommands No longer creating AutoCompleters for all subcommands each time tab is pressed
* | Removed token_start_index from AutoCompleter's __init__ methodKevin Van Brunt2019-08-121-3/+1
| |
* | Removed need for AutoCompleter's token_start_index memberKevin Van Brunt2019-08-121-13/+9
|/
* 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-052-42/+25
|
* Added functions to manually add choice providing functions to an argparse ↵Kevin Van Brunt2019-08-051-21/+67
| | | | action.
* Added terminators to completion delimitersKevin Van Brunt2019-08-022-53/+6
|
* Fixed inconsistent parsing/tab completion behavior based on the value of ↵Kevin Van Brunt2019-08-022-124/+104
| | | | | | `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-012-7/+12
|
* Merge branch 'master' into make_history_directoryKevin Van Brunt2019-07-301-4/+8
|\
| * Raising exception when a choices or completer function is used for an ↵Kevin Van Brunt2019-07-291-4/+8
| | | | | | | | argument that takes no values
* | Creating directory of persistent history file if it does not existKevin Van Brunt2019-07-291-5/+15
|/