summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
* Updated macro documentation0.9.9Kevin Van Brunt2019-02-211-2/+2
|
* Removed os.system in favor of do_shellKevin Van Brunt2019-02-211-6/+5
|
* No longer sorting settable during initialization since the show method ↵Kevin Van Brunt2019-02-201-6/+1
| | | | already sorts it results
* Fixed bug where items tab completed in set were not currentKevin Van Brunt2019-02-201-3/+7
|
* Suppress KeyboardInterrupt in portions of py/pyscript where the interactive ↵Kevin Van Brunt2019-02-061-141/+157
| | | | console isn't running
* Fixed issue where calling exit() or quit() from a pyscript would close the ↵Kevin Van Brunt2019-02-061-137/+138
| | | | whole console
* Added tab completion of paths to pyscript script argumentsKevin Van Brunt2019-01-081-2/+3
|
* Improved commentKevin Van Brunt2018-12-211-1/+3
|
* Restored default behavior of setting cmd_echo to False before running a py ↵Kevin Van Brunt2018-12-211-0/+4
| | | | script
* Fixed bug in cmd2.Cmd.select() when user enters 0 or negative numberTodd Leonhardt2018-12-131-0/+2
|
* Removed ERROR: text from perror outputKevin Van Brunt2018-12-061-1/+1
|
* Added some return type hintsKevin Van Brunt2018-12-051-9/+9
|
* Moved some class specific code out of __init__Kevin Van Brunt2018-12-031-4/+4
|
* Moved default_to_shell logic back to default()Kevin Van Brunt2018-12-031-17/+14
|
* Made it so default_to_shell results in do_shell being called so that output ↵Kevin Van Brunt2018-11-301-29/+36
| | | | can be captured
* Renamed display_width to ansi_safe_wcswidthKevin Van Brunt2018-11-161-4/+4
|
* Added wrapper for wcswidth that removes ansi escape charactersKevin Van Brunt2018-11-151-6/+5
|
* Remove elif: decolorized_write already handles itEthan McCreadie2018-11-011-4/+1
|
* Strip color codes when redirecting w/ ppaged()Ethan McCreadie2018-11-011-0/+3
|
* Fixed messed up GitHub auto-commit from PR suggestionTodd Leonhardt2018-10-261-2/+1
|
* Update cmd2/cmd2.pykmvanbrunt2018-10-261-1/+1
| | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com>
* Update cmd2/cmd2.pykmvanbrunt2018-10-261-1/+1
| | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com>
* Update cmd2/cmd2.pykmvanbrunt2018-10-261-1/+1
| | | Co-Authored-By: tleonhardt <todd.leonhardt@gmail.com>
* Improved documentation for argument parsing decoratorsTodd Leonhardt2018-10-261-13/+21
| | | | | Also: - Improved type hinting for these decorators
* Refactored filtering in path_complete to use a functionKevin Van Brunt2018-10-261-11/+11
|
* 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
|