summaryrefslogtreecommitdiff
path: root/cmd2/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * switch _initialize_history() from os.path to pathlibkotfu2019-05-251-6/+7
| |
| * Manually check whether persistent_history_file is a directorykotfu2019-05-251-4/+7
| |
| * Resolve PR feedbackkotfu2019-05-251-9/+9
| |
| * Populate readline history from unpickled historykotfu2019-05-241-22/+23
| |
| * Refactor HistoryItem to not subclass strkotfu2019-05-241-6/+8
| |
| * Cleanup some history testskotfu2019-05-241-18/+38
| |
| * Initializing history now detects plaintext or pickle formatkotfu2019-05-241-32/+50
| |
* | Removed _STOP_AND_EXIT cmd2 class member since it was meant to be a boolean ↵Kevin Van Brunt2019-06-041-6/+4
| | | | | | | | constant and was only used internally
* | Removing duplicate functionality by calling runcmds_plus_hooks() to run cmdqueueKevin Van Brunt2019-05-241-10/+11
| |
* | Running commands from history stops if a command returns True for its stop ↵Kevin Van Brunt2019-05-241-5/+1
| | | | | | | | value. The command loop will also terminate.
* | Since transcript generation actually runs the commands, it now returns ↵Kevin Van Brunt2019-05-241-4/+10
| | | | | | | | | | | | | | whether a command returned stop. This means the command loop will stop once transcript generation completes if a command did return stop. Otherwise there is a risk in continuing to run if the application's state has already been marked to close.
* | Fixed count in output message printed after transcript generationKevin Van Brunt2019-05-241-2/+7
| |
* | Stopping transcript generation if a command returns True for its stop valueKevin Van Brunt2019-05-241-1/+4
| |
* | Removed most return statements from finally blocks to avoid hiding exceptionsKevin Van Brunt2019-05-241-39/+31
| |
* | Fixed spellingKevin Van Brunt2019-05-231-1/+1
| |
* | Returning value of stop from history command when it runs a scriptKevin Van Brunt2019-05-231-4/+5
| |
* | Change load to run scripts immediately instead of queueing commandsKevin Van Brunt2019-05-231-63/+42
|/
* Modified transcript testing so that the useless exception trackeback isn't ↵Todd Leonhardt2019-05-211-2/+13
| | | | printed in failure cases
* Refactor exit_code implementationTodd Leonhardt2019-05-201-6/+11
| | | | | | | | | | | | cmd2.Cmd.cmdloop() now returns self.exit_code which should be an integer Also: - Refactored examples to call sys.exit(app.cmdloop()) in their __main__ - Running transcript tests now sets the exit_code accordingly based on success/failure - Updated CHANGELOG - Updated README - Updated Sphinx docs - Added unit test for case when transcript test fails
* Added documentation for ns_providerKevin Van Brunt2019-05-161-6/+8
|
* Made ns_provider and preserve_quotes keyword-only argsKevin Van Brunt2019-05-141-9/+8
|
* Changed order of function argumentsKevin Van Brunt2019-05-141-6/+7
|
* Updated docstringKevin Van Brunt2019-05-141-4/+4
|
* Added namespace provider argument to argparse decorators to support custom ↵Kevin Van Brunt2019-05-141-3/+21
| | | | Namespaces during argument parsing
* Preserving originally typed quotes of Statement.output_to for use in ↵Kevin Van Brunt2019-05-131-1/+1
| | | | Statement.post_command()
* Fixed parsing issue in case where output redirection (e.g. > file) appears ↵Kevin Van Brunt2019-05-131-7/+10
| | | | | | before a pipe. In that case, the pipe was given precedence even though it appeared later in the command.
* Fixed flake errorsKevin Van Brunt2019-05-081-2/+2
|
* Small refactors to tab completion functionKevin Van Brunt2019-05-081-6/+7
|
* Updated documentationKevin Van Brunt2019-05-071-2/+2
|
* Added capability to redirect pipe commands and chain them togetherKevin Van Brunt2019-05-071-39/+35
|
* Merged master and resolved conflicts in CHANGELOGTodd Leonhardt2019-05-071-6/+21
|\
| * Exceptions occurring in tab completion functions are now printed to stderr ↵Kevin Van Brunt2019-05-061-6/+21
| | | | | | | | before returning control back to readline
* | Broke _complete_statement into 2 functions.Kevin Van Brunt2019-05-051-43/+58
| | | | | | | | Fixed issue where terminators could not be used in alias/macro values.
* | Making sure the resolved macro statement contains the originally typed lineKevin Van Brunt2019-05-021-4/+24
| |
* | Macros can now share their name with a commandKevin Van Brunt2019-05-021-9/+2
| |
* | Macro resolution now occurs during parsingKevin Van Brunt2019-05-021-58/+73
|/
* Only enabling/disabling stdout storage in the call PyscriptBridge makes to ↵Kevin Van Brunt2019-04-231-13/+8
| | | | | | | onecmd_plus_hooks. All nested calls to onecmd_plus_hooks keep capturing stdout to match the behavior of stdout redirection being enabled during nested commands.
* Restoring full functionality of StdSim after command finalization hooksKevin Van Brunt2019-04-101-0/+6
|
* Updated commentKevin Van Brunt2019-04-101-1/+1
|
* Removed unused importKevin Van Brunt2019-04-101-1/+1
|
* Pyscript now saves command output during the same period that redirection doesKevin Van Brunt2019-04-101-1/+10
|
* Fixed path completion case where cwd is just a slashKevin Van Brunt2019-04-051-1/+5
|
* Started addressing my PR commentsTodd Leonhardt2019-04-021-26/+7
|
* Removed repeated block of codeKevin Van Brunt2019-03-271-7/+0
|
* Merge branch 'master' into capture_popenKevin Van Brunt2019-03-271-16/+30
|\
| * Fixed flake warningKevin Van Brunt2019-03-221-3/+2
| |
| * Corrected what prompt variable was being usedKevin Van Brunt2019-03-211-3/+3
| |
| * Fixed issue when printing alerts caused by a prompt with a new line characterKevin Van Brunt2019-03-211-13/+28
| |
* | Renamed stuff and removed unneeded KeyboardInterrupt protectionKevin Van Brunt2019-03-271-7/+7
| |
* | Added sigint protection around some state variable changesKevin Van Brunt2019-03-271-43/+46
| |