summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
* cmdloop now checks to see if it is running in the main thread before ↵Todd Leonhardt2018-10-211-6/+9
| | | | attempting to register a signal handler for SIGINT
* Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were ↵Todd Leonhardt2018-10-181-20/+0
| | | | deprecated in 0.9.5
* Updated outdated header comment in cmd2.pyTodd Leonhardt2018-10-141-1/+1
|
* You can now call a macro with extra argumentsKevin Van Brunt2018-10-121-5/+15
|
* Refactored async_alertKevin Van Brunt2018-10-111-56/+43
|
* Using wcwidth to calculate display width of promptKevin Van Brunt2018-10-111-18/+25
|
* Do not asynchronously update continuation promptsKevin Van Brunt2018-10-111-16/+26
|
* Syle-based refactorKevin Van Brunt2018-10-111-2/+2
|
* Added documentation stating that parsers passed to argparse decorators need ↵Todd Leonhardt2018-10-061-2/+2
| | | | | | | to be unique Also: - Modified table_display.py to demonstrate a workaround
* set_window_title() will no longer write to stderr unless self._terminal_lock ↵Kevin Van Brunt2018-10-051-17/+32
| | | | can be acquired
* Using sub-command instead of subcommand where possible to be consistent with ↵Kevin Van Brunt2018-10-051-12/+12
| | | | argparse
* Added hyphen to subparser titleKevin Van Brunt2018-10-041-2/+2
|
* Added title subcommand groupsKevin Van Brunt2018-10-041-2/+2
|
* Fixed issue introduced in the recent batch of changes that appended to ↵Kevin Van Brunt2018-10-041-2/+2
| | | | | | history after running a command. This is to avoid out of order history that would result if a command made another call to onecmd().
* Updated docstringKevin Van Brunt2018-10-031-2/+2
|
* Merge branch 'master' into py_enhancementsTodd Leonhardt2018-10-031-56/+61
|\
| * Updated commentKevin Van Brunt2018-10-031-2/+2
| |
| * Commands with categories will no longer show in the 'Undocumented commands' ↵Kevin Van Brunt2018-10-031-22/+32
| | | | | | | | section
| * Don't recognize help functions for argparse commandsKevin Van Brunt2018-10-031-7/+7
| |
| * Fixed argparse help summary when no docstring was providedKevin Van Brunt2018-10-031-33/+28
| |
* | Returned cmd_echo default to False except when running a Python command at ↵Kevin Van Brunt2018-10-021-0/+2
| | | | | | | | the CLI
* | Don't worry about unquoting alias and macro names as they shouldn't be ↵Kevin Van Brunt2018-10-021-24/+10
| | | | | | | | entered this way anyway
* | Changed default() to print the actual command run for unknown syntax errors.Kevin Van Brunt2018-10-021-12/+6
| | | | | | | | Fixed default() to run the resolved command instead of raw when default_to_shell is True.
* | Added echo parameter for calling commands from PyscriptKevin Van Brunt2018-10-021-1/+15
|/ | | | Documented py command's parsing limitations
* Remove self from pystate if locals_in_py is FalseKevin Van Brunt2018-10-011-0/+2
|
* Preserving quotes for do_py inputKevin Van Brunt2018-10-011-4/+6
|
* Small refactoringKevin Van Brunt2018-09-301-10/+5
|
* Added more code coverage with unit testsKevin Van Brunt2018-09-281-0/+4
|
* Addressing code review commentsKevin Van Brunt2018-09-281-4/+4
|
* Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-281-34/+27
|\
| * Simplified help functionKevin Van Brunt2018-09-281-9/+4
| |
| * Made function publicKevin Van Brunt2018-09-281-24/+23
| |
| * Fixed a couple docstring comments which were out of date after an argument ↵Todd Leonhardt2018-09-271-2/+2
| | | | | | | | got renamed
* | Fixed a couple docstring comments which were out of date after an argument ↵Todd Leonhardt2018-09-281-2/+2
| | | | | | | | got renamed
* | Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-271-101/+102
|\ \ | |/
| * Simiplified a bit of code and make the 'do_' string a constantKevin Van Brunt2018-09-271-38/+46
| |
| * Removed unused importsTodd Leonhardt2018-09-271-2/+2
| |
| * Made _func_named() more reliableKevin Van Brunt2018-09-271-16/+9
| | | | | | | | Added unit tests
| * Changes requested in code reviewKevin Van Brunt2018-09-271-10/+2
| |
| * Fixed missing variableKevin Van Brunt2018-09-271-1/+1
| |
| * Removed temporary variableKevin Van Brunt2018-09-271-13/+13
| |
| * Fixed commentKevin Van Brunt2018-09-271-4/+4
| |
| * Addressing code review commentsKevin Van Brunt2018-09-271-31/+39
| |
* | Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-271-14/+14
|\ \ | |/
| * Fixed bug in handling unicode digits in macro argumentsKevin Van Brunt2018-09-271-10/+11
| |
| * Made macro argument patterns class members of MacroArgKevin Van Brunt2018-09-271-6/+5
| |
* | Tweaked some help textKevin Van Brunt2018-09-271-9/+9
| |
* | Ported pyscript to argparseKevin Van Brunt2018-09-271-22/+10
| |
* | Ported shell to argparseKevin Van Brunt2018-09-271-17/+11
| |
* | Passing strings into do_help nowKevin Van Brunt2018-09-261-2/+2
| |