summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Running commands from history stops if a command returns True for its stop ↵Kevin Van Brunt2019-05-241-1/+0
| | | | | | | | value. The command loop will also terminate.
* | Removed most return statements from finally blocks to avoid hiding exceptionsKevin Van Brunt2019-05-241-5/+10
| |
* | Change load to run scripts immediately instead of queueing commandsKevin Van Brunt2019-05-231-66/+65
|/
* Modified transcript testing so that the useless exception trackeback isn't ↵Todd Leonhardt2019-05-211-2/+2
| | | | printed in failure cases
* Refactor exit_code implementationTodd Leonhardt2019-05-203-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 testsKevin Van Brunt2019-05-151-17/+39
|
* Increased code coverage of _complete_worker() to 100%Kevin Van Brunt2019-05-131-2/+43
|
* Added unit testsKevin Van Brunt2019-05-131-0/+28
|
* Added unit testKevin Van Brunt2019-05-131-0/+15
|
* Added unit testsKevin Van Brunt2019-05-131-1/+99
|
* Removed unused codeKevin Van Brunt2019-05-131-1/+0
|
* Fixed parsing issue in case where output redirection (e.g. > file) appears ↵Kevin Van Brunt2019-05-131-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 togetherKevin Van Brunt2019-05-072-18/+17
|
* Merged master and resolved conflicts in CHANGELOGTodd Leonhardt2019-05-072-4/+33
|\
| * Improved code coverageKevin Van Brunt2019-05-071-4/+15
| |
| * Merge branch 'master' into completion_exceptionsKevin Van Brunt2019-05-062-8/+8
| |\
| * \ Merge branch 'master' into completion_exceptionsKevin Van Brunt2019-05-061-1/+0
| |\ \
| * | | Exceptions occurring in tab completion functions are now printed to stderr ↵Kevin Van Brunt2019-05-061-0/+18
| | | | | | | | | | | | | | | | before returning control back to readline
* | | | Merge branch 'master' into macro_refactorKevin Van Brunt2019-05-062-8/+8
|\ \ \ \ | | |_|/ | |/| |
| * | | Merge branch 'master' into argparse_errorKevin Van Brunt2019-05-061-1/+0
| |\ \ \ | | | |/ | | |/|
| * | | ACArgumentParser no longer prints complete help text when a parsing error occursKevin Van Brunt2019-05-062-8/+8
| | |/ | |/|
* | | Merge branch 'master' into macro_refactorKevin Van Brunt2019-05-061-1/+0
|\ \ \ | | |/ | |/|
| * | Fixed issue where the wrong terminator was being appended by ↵Kevin Van Brunt2019-05-061-1/+0
| |/ | | | | | | Statement.expanded_command_line()
* | Updated unit testKevin Van Brunt2019-05-051-6/+6
| |
* | Broke _complete_statement into 2 functions.Kevin Van Brunt2019-05-051-0/+5
| | | | | | | | Fixed issue where terminators could not be used in alias/macro values.
* | Macros can now share their name with a commandKevin Van Brunt2019-05-021-5/+0
| |
* | Macro resolution now occurs during parsingKevin Van Brunt2019-05-021-1/+1
|/
* Added unit testKevin Van Brunt2019-04-251-11/+20
|
* Updated commentKevin Van Brunt2019-04-241-2/+8
|
* Added unit test for stdout capture in pyscriptKevin Van Brunt2019-04-233-2/+39
|
* Pyscript now saves command output during the same period that redirection doesKevin Van Brunt2019-04-101-3/+2
|
* Added unit test for path completion in root directoryKevin Van Brunt2019-04-051-0/+19
|
* Attempt to fix unit testsTodd Leonhardt2019-04-021-0/+3
|
* Added some unit tests for ProcReader and ContextFlag utility classesTodd Leonhardt2019-04-021-0/+51
|
* Added unit testKevin Van Brunt2019-03-271-0/+9
|
* Simplified a unit testKevin Van Brunt2019-03-201-3/+2
|
* Fixed unit testKevin Van Brunt2019-03-201-3/+3
|
* Fixed unit test on WindowsKevin Van Brunt2019-03-201-1/+1
|
* Made run_cmd return out and errKevin Van Brunt2019-03-207-459/+401
|
* Printing an error instead of raising and exception if setting a variable ↵Kevin Van Brunt2019-03-201-23/+15
| | | | that does not exist
* Not running command if redirection failsKevin Van Brunt2019-03-201-19/+8
|
* Only capturing Popen output when stdout is a StdSim objectKevin Van Brunt2019-03-201-0/+1
|
* Now consistently use -t flag for transcript generation for both history and ↵Todd Leonhardt2019-03-191-1/+1
| | | | load commands
* Updated CHANGELOGTodd Leonhardt2019-03-191-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_transcriptTodd Leonhardt2019-03-183-9/+7
|\
| * Merge branch 'master' into attributesKevin Van Brunt2019-03-171-4/+5
| |\
| * \ Merge branch 'master' into attributesTodd Leonhardt2019-03-171-0/+7
| |\ \
| * \ \ Merge branch 'master' into attributesTodd Leonhardt2019-03-161-6/+7
| |\ \ \
| * | | | Aliases are now stored within the StatementParser instanceTodd Leonhardt2019-03-161-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 attributesTodd Leonhardt2019-03-141-12/+25
| |\ \ \ \