summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed 2 bugs in ppaged():Kevin Van Brunt2019-11-231-4/+8
| | | | | - end was not being passed to poutput() - msg object was not being converted string before empty string check
* Updated arguments to pfeedback and ppaged for consistency with other cmd2 ↵Kevin Van Brunt2019-11-231-43/+46
| | | | print functions
* Added capability to override the argument parser class used by cmd2 built-in ↵Kevin Van Brunt2019-11-191-18/+18
| | | | commands
* Reformatted warning messageKevin Van Brunt2019-11-181-3/+3
|
* Fixed bug where pipe processes were not being stopped by Ctrl-C on WindowsKevin Van Brunt2019-11-181-10/+8
|
* Fixed sphinx doc errorKevin Van Brunt2019-11-171-3/+2
|
* Updating unit testsKevin Van Brunt2019-11-171-2/+2
|
* Updated comments and change logKevin Van Brunt2019-11-161-2/+2
|
* Updating unit testsKevin Van Brunt2019-11-161-1/+1
|
* Added cmd2-specific input() function that reads from the correct stdin and ↵Kevin Van Brunt2019-11-161-67/+92
| | | | can disable tab completion
* Fix bug where cmd2 ran 'stty sane' command when stdin was not a terminalKevin Van Brunt2019-11-111-1/+1
|
* Made some cmd2 module constants cmd2.Cmd class constantsKevin Van Brunt2019-10-311-10/+10
|
* Moving a bit of code around to shrink cmd2.pyKevin Van Brunt2019-10-311-247/+26
| | | | | 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-15/+18
|\ | | | | | | | | # Conflicts: # CHANGELOG.md
| * Merge branch 'master' into history_editTodd Leonhardt2019-10-301-2/+2
| |\
| | * Only removing ipy from cmd2 instances instead of the class when use_ipython ↵Kevin Van Brunt2019-10-301-2/+2
| | | | | | | | | | | | is False
| * | do_history no longer calls do_edit since edit is a command that is commonly ↵Kevin Van Brunt2019-10-301-13/+16
| |/ | | | | | | overridden
* | Fixed warningKevin Van Brunt2019-10-301-0/+1
| |
* | Setting prog value of a command and its subcommand parsers to contain the ↵Kevin Van Brunt2019-10-301-22/+43
|/ | | | command name and not sys.argv[0]
* 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
|