summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Removed Statekeeper class and renamed some variablesKevin Van Brunt2019-03-191-39/+18
| |
| * Keeping track of redirection for each commandKevin Van Brunt2019-03-191-69/+82
| |
| * Simplified quit_on_sigint handlingKevin Van Brunt2019-03-181-27/+16
| |
* | Now consistently use -t flag for transcript generation for both history and ↵Todd Leonhardt2019-03-191-4/+3
| | | | | | | | load commands
* | Combined two conditionalsTodd Leonhardt2019-03-191-5/+3
| |
* | Updated CHANGELOGTodd Leonhardt2019-03-191-14/+10
| | | | | | | | | | | | Also: - Removed guard clauses which kmvanbrunt promises will be unecessary with his upcoming change - Moved transcript path validation inside _generate_transcript()
* | Addressed review commentsTodd Leonhardt2019-03-181-7/+17
| |
* | Merge branch 'master' into load_generate_transcriptTodd Leonhardt2019-03-181-61/+77
|\ \ | |/
| * Merge branch 'master' into attributesTodd Leonhardt2019-03-171-10/+25
| |\
| * | Updated CHANGELOG and fixed a typo in a type hintTodd Leonhardt2019-03-161-1/+1
| | |
| * | Merge branch 'master' into attributesTodd Leonhardt2019-03-161-4/+19
| |\ \
| * | | Aliases are now stored within the StatementParser instanceTodd Leonhardt2019-03-161-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also: - Added read-only aliases property to cmd2.Cmd to get aliases from the StatementParser - Added a setter for the allow_redirection property in cmd2.Cmd - Made some initialization code more self-documenting
| * | | Converted dynamic class attributes to instance attributesTodd Leonhardt2019-03-141-31/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following attritubes which are intended to be dynamically settable at runtime are now instance attributes: - colors - continuation_prompt - debug - echo - editor - feedback_to_output - locals_in_py - quiet - timing - settable Also: - Moved code for finding a default editor to a function in utils and set a new DEFAULT_EDITOR class attribute with the return value of that
| * | | Converted class attributes which aren't intended to be dynamically settable ↵Todd Leonhardt2019-03-141-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to instance attributes The following are now instance attributes: - allow_cli_args - default_to_shell - quit_on_sigint The following class attribute was deleted due to lack of use: - reserved_words The following instance attribute was deleted due to lack of use: - keywords
| * | | Made several attributes of StatementParser immutableTodd Leonhardt2019-03-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The following attributes within StatementParser were converted from mutable lists to immutable tuples: - terminators - multiline_commands - shortcuts
| * | | Merge branch 'master' into attributesTodd Leonhardt2019-03-141-3/+16
| |\ \ \
| * | | | First stage of attribute refactoringTodd Leonhardt2019-03-131-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following are now arguments to cmd2.Cmd.__init__() instead of class attributes: * allow_redirection * multiline_commands * terminators * shortcuts Added a couple read-only properties for convenience of cmd2.Cmd accessing immutable members from self.statement_parser
| * | | | Fixed accidental paste typoTodd Leonhardt2019-03-131-1/+1
| | | | |
| * | | | Cleaned up some PyCharm warningsTodd Leonhardt2019-03-131-3/+13
| | | | |
* | | | | Added load -r flag for recording a transcript based on a script fileTodd Leonhardt2019-03-181-11/+27
| |_|_|/ |/| | | | | | | | | | | The load command now supports the -r/--record_transcript flag for recording a transcript file based on a script file.
* | | | Updated documentationKevin Van Brunt2019-03-161-2/+2
| | | |
* | | | Added Statement object to argparse Namespace passed to wrapped functionsKevin Van Brunt2019-03-161-10/+25
| |_|/ |/| |
* | | Added help_error and default_errorKevin Van Brunt2019-03-161-5/+9
| | |
* | | Support colors in help and disabled command errorsKevin Van Brunt2019-03-161-4/+7
| | |
* | | Help command now writes to stderr when there is no help informationKevin Van Brunt2019-03-141-4/+12
| |/ |/|
* | Updated documentationKevin Van Brunt2019-03-141-0/+8
| |
* | Added ability to place the command name in a disabled command message. This ↵Kevin Van Brunt2019-03-131-1/+5
| | | | | | | | is useful when disabling an entire category of commands.
* | Writing to stderr in default() and _report_disabled_command_usage() to make ↵Kevin Van Brunt2019-03-131-2/+3
|/ | | | it easy to detect an error in pyscript
* Merge branch 'master' into history_improvementsKevin Van Brunt2019-03-121-7/+3
|\
| * Small refactorKevin Van Brunt2019-03-121-7/+3
| |
* | Incorporating requested changes from the PRkotfu2019-03-101-1/+1
| |
* | Merge branch 'history_improvements' of github.com:python-cmd2/cmd2 into ↵kotfu2019-03-101-7/+114
|\ \ | |/ | | | | history_improvements
| * Changed DisabledCommand into a namedtupleKevin Van Brunt2019-03-101-10/+5
| |
| * Fixed long line warningKevin Van Brunt2019-03-101-1/+2
| |
| * Fixed long line warningKevin Van Brunt2019-03-101-1/+2
| |
| * Added function to report that a disabled command has been run.Kevin Van Brunt2019-03-101-4/+16
| | | | | | | | Not adding disabled commands to the history when run.
| * Updated examples and documentation pertaining to disabling commandsKevin Van Brunt2019-03-101-2/+3
| |
| * Fixed another Flake warningKevin Van Brunt2019-03-101-4/+2
| |
| * Fixed flake warningsKevin Van Brunt2019-03-091-4/+4
| |
| * Added unit tests for disabling commandsKevin Van Brunt2019-03-091-1/+1
| |
| * Merge branch 'master' into disable_commandKevin Van Brunt2019-03-091-1/+1
| |\
| | * Only print a traceback if there is one to printKevin Van Brunt2019-03-091-1/+1
| | |
| * | Added way to disable commandsKevin Van Brunt2019-03-091-4/+103
| |/
* | Clean up history commandkotfu2019-03-091-7/+14
|/
* Updated a comment and moved an importKevin Van Brunt2019-03-061-1/+1
|
* Moved some utility functions from cmd2.py to parsing.pyTodd Leonhardt2019-03-051-33/+5
|
* Fix flake8 failureTodd Leonhardt2019-03-051-1/+0
|
* Reversed arguments in a UnionKevin Van Brunt2019-03-051-4/+4
|
* Added a shlex.split() wrapper to have a common way of calling it.Kevin Van Brunt2019-03-051-36/+47
| | | | Replaced parse_quoted_string with _get_command_arg_list.
* Merged master into this branch and resolved conflicts in CHANGELOGTodd Leonhardt2019-03-041-149/+44
|\