Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Running commands from history stops if a command returns True for its stop ↵ | Kevin Van Brunt | 2019-05-24 | 1 | -1/+0 | |
| | | | | | | | | value. The command loop will also terminate. | |||||
* | | Removed most return statements from finally blocks to avoid hiding exceptions | Kevin Van Brunt | 2019-05-24 | 1 | -5/+10 | |
| | | ||||||
* | | Change load to run scripts immediately instead of queueing commands | Kevin Van Brunt | 2019-05-23 | 1 | -66/+65 | |
|/ | ||||||
* | Modified transcript testing so that the useless exception trackeback isn't ↵ | Todd Leonhardt | 2019-05-21 | 1 | -2/+2 | |
| | | | | printed in failure cases | |||||
* | Refactor exit_code implementation | Todd Leonhardt | 2019-05-20 | 3 | -5/+34 | |
| | | | | | | | | | | | | 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 unit tests | Kevin Van Brunt | 2019-05-15 | 1 | -17/+39 | |
| | ||||||
* | Increased code coverage of _complete_worker() to 100% | Kevin Van Brunt | 2019-05-13 | 1 | -2/+43 | |
| | ||||||
* | Added unit tests | Kevin Van Brunt | 2019-05-13 | 1 | -0/+28 | |
| | ||||||
* | Added unit test | Kevin Van Brunt | 2019-05-13 | 1 | -0/+15 | |
| | ||||||
* | Added unit tests | Kevin Van Brunt | 2019-05-13 | 1 | -1/+99 | |
| | ||||||
* | Removed unused code | Kevin Van Brunt | 2019-05-13 | 1 | -1/+0 | |
| | ||||||
* | Fixed parsing issue in case where output redirection (e.g. > file) appears ↵ | Kevin Van Brunt | 2019-05-13 | 1 | -4/+8 | |
| | | | | | | before a pipe. In that case, the pipe was given precedence even though it appeared later in the command. | |||||
* | Added capability to redirect pipe commands and chain them together | Kevin Van Brunt | 2019-05-07 | 2 | -18/+17 | |
| | ||||||
* | Merged master and resolved conflicts in CHANGELOG | Todd Leonhardt | 2019-05-07 | 2 | -4/+33 | |
|\ | ||||||
| * | Improved code coverage | Kevin Van Brunt | 2019-05-07 | 1 | -4/+15 | |
| | | ||||||
| * | Merge branch 'master' into completion_exceptions | Kevin Van Brunt | 2019-05-06 | 2 | -8/+8 | |
| |\ | ||||||
| * \ | Merge branch 'master' into completion_exceptions | Kevin Van Brunt | 2019-05-06 | 1 | -1/+0 | |
| |\ \ | ||||||
| * | | | Exceptions occurring in tab completion functions are now printed to stderr ↵ | Kevin Van Brunt | 2019-05-06 | 1 | -0/+18 | |
| | | | | | | | | | | | | | | | | before returning control back to readline | |||||
* | | | | Merge branch 'master' into macro_refactor | Kevin Van Brunt | 2019-05-06 | 2 | -8/+8 | |
|\ \ \ \ | | |_|/ | |/| | | ||||||
| * | | | Merge branch 'master' into argparse_error | Kevin Van Brunt | 2019-05-06 | 1 | -1/+0 | |
| |\ \ \ | | | |/ | | |/| | ||||||
| * | | | ACArgumentParser no longer prints complete help text when a parsing error occurs | Kevin Van Brunt | 2019-05-06 | 2 | -8/+8 | |
| | |/ | |/| | ||||||
* | | | Merge branch 'master' into macro_refactor | Kevin Van Brunt | 2019-05-06 | 1 | -1/+0 | |
|\ \ \ | | |/ | |/| | ||||||
| * | | Fixed issue where the wrong terminator was being appended by ↵ | Kevin Van Brunt | 2019-05-06 | 1 | -1/+0 | |
| |/ | | | | | | | Statement.expanded_command_line() | |||||
* | | Updated unit test | Kevin Van Brunt | 2019-05-05 | 1 | -6/+6 | |
| | | ||||||
* | | Broke _complete_statement into 2 functions. | Kevin Van Brunt | 2019-05-05 | 1 | -0/+5 | |
| | | | | | | | | Fixed issue where terminators could not be used in alias/macro values. | |||||
* | | Macros can now share their name with a command | Kevin Van Brunt | 2019-05-02 | 1 | -5/+0 | |
| | | ||||||
* | | Macro resolution now occurs during parsing | Kevin Van Brunt | 2019-05-02 | 1 | -1/+1 | |
|/ | ||||||
* | Added unit test | Kevin Van Brunt | 2019-04-25 | 1 | -11/+20 | |
| | ||||||
* | Updated comment | Kevin Van Brunt | 2019-04-24 | 1 | -2/+8 | |
| | ||||||
* | Added unit test for stdout capture in pyscript | Kevin Van Brunt | 2019-04-23 | 3 | -2/+39 | |
| | ||||||
* | Pyscript now saves command output during the same period that redirection does | Kevin Van Brunt | 2019-04-10 | 1 | -3/+2 | |
| | ||||||
* | Added unit test for path completion in root directory | Kevin Van Brunt | 2019-04-05 | 1 | -0/+19 | |
| | ||||||
* | Attempt to fix unit tests | Todd Leonhardt | 2019-04-02 | 1 | -0/+3 | |
| | ||||||
* | Added some unit tests for ProcReader and ContextFlag utility classes | Todd Leonhardt | 2019-04-02 | 1 | -0/+51 | |
| | ||||||
* | Added unit test | Kevin Van Brunt | 2019-03-27 | 1 | -0/+9 | |
| | ||||||
* | Simplified a unit test | Kevin Van Brunt | 2019-03-20 | 1 | -3/+2 | |
| | ||||||
* | Fixed unit test | Kevin Van Brunt | 2019-03-20 | 1 | -3/+3 | |
| | ||||||
* | Fixed unit test on Windows | Kevin Van Brunt | 2019-03-20 | 1 | -1/+1 | |
| | ||||||
* | Made run_cmd return out and err | Kevin Van Brunt | 2019-03-20 | 7 | -459/+401 | |
| | ||||||
* | Printing an error instead of raising and exception if setting a variable ↵ | Kevin Van Brunt | 2019-03-20 | 1 | -23/+15 | |
| | | | | that does not exist | |||||
* | Not running command if redirection fails | Kevin Van Brunt | 2019-03-20 | 1 | -19/+8 | |
| | ||||||
* | Only capturing Popen output when stdout is a StdSim object | Kevin Van Brunt | 2019-03-20 | 1 | -0/+1 | |
| | ||||||
* | Now consistently use -t flag for transcript generation for both history and ↵ | Todd Leonhardt | 2019-03-19 | 1 | -1/+1 | |
| | | | | load commands | |||||
* | Updated CHANGELOG | Todd Leonhardt | 2019-03-19 | 1 | -2/+2 | |
| | | | | | | Also: - Removed guard clauses which kmvanbrunt promises will be unecessary with his upcoming change - Moved transcript path validation inside _generate_transcript() | |||||
* | Merge branch 'master' into load_generate_transcript | Todd Leonhardt | 2019-03-18 | 3 | -9/+7 | |
|\ | ||||||
| * | Merge branch 'master' into attributes | Kevin Van Brunt | 2019-03-17 | 1 | -4/+5 | |
| |\ | ||||||
| * \ | Merge branch 'master' into attributes | Todd Leonhardt | 2019-03-17 | 1 | -0/+7 | |
| |\ \ | ||||||
| * \ \ | Merge branch 'master' into attributes | Todd Leonhardt | 2019-03-16 | 1 | -6/+7 | |
| |\ \ \ | ||||||
| * | | | | Aliases are now stored within the StatementParser instance | Todd Leonhardt | 2019-03-16 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | |||||
| * | | | | Merge branch 'master' into attributes | Todd Leonhardt | 2019-03-14 | 1 | -12/+25 | |
| |\ \ \ \ |