summaryrefslogtreecommitdiff
path: root/tests/transcripts
Commit message (Collapse)AuthorAgeFilesLines
* Added support for 8-bit/256-colors with the cmd2.EightBitFg and ↵Kevin Van Brunt2021-10-181-1/+1
| | | | | | | | | | | | | | cmd2.EightBitBg classes. Added support for 24-bit/RGB colors with the cmd2.RgbFg and cmd2.RgbBg classes. Removed dependency on colorama. Deprecated cmd2.fg. Use cmd2.Fg instead. Deprecated cmd2.bg. Use cmd2.Bg instead. Changed type of ansi.allow_style from a string to an ansi.AllowStyle Enum class. Fixed bug where using choices on a Settable didn't verify that a valid choice had been entered.
* set command output now uses SimpleTable.Kevin Van Brunt2021-08-191-10/+21
| | | | | | | Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show.
* Fixing tests on Python 3.10Kevin Van Brunt2021-06-171-6/+6
|
* Added always_show_hint settingKevin Van Brunt2020-09-051-0/+1
| | | | Fixed issue where flag names weren't always sorted correctly in argparse tab completion
* Updated set command to support tab completion of valuesKevin Van Brunt2020-02-041-2/+2
|
* Made three public attributes of cmd2.Cmd no longer settable at runtime by ↵Todd Leonhardt2020-01-272-6/+3
| | | | | | | | | end users The 3 attributes are: - continuation_prompt - locals_in_py - prompt
* Changed allow_ansi to allow_style for accuracy in what types of ANSI escape ↵Kevin Van Brunt2019-12-191-1/+1
| | | | sequences are handled
* Make max_completion_items settableKevin Van Brunt2019-07-151-0/+1
|
* Renamed colors setting to allow_ansiKevin Van Brunt2019-06-261-1/+1
|
* Modified a transcript used during testing to not run help so that it doesn't ↵Todd Leonhardt2019-06-151-15/+6
| | | | | | need to be changed any time the content of help changes Now the only test which should need to change when a command is added, deleted, or renamed (which isn't specifically related to that command) is test_get_all_commands
* Fixed unit testKevin Van Brunt2019-06-151-2/+3
|
* 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.
* Refactor exit_code implementationTodd Leonhardt2019-05-201-0/+4
| | | | | | | | | | | | 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
* First version of adding an expanded option to history itemsKevin Van Brunt2018-12-031-12/+6
|
* Fixed transcript testing bug where last command in transcript has no ↵Todd Leonhardt2018-09-302-1/+8
| | | | | | | expected output Also: - Added unit test for this specific case
* Merged master into transcript_fixes branch and resolved conflictsTodd Leonhardt2018-09-302-4/+4
|\
| * Merge branch 'master' into macroKevin Van Brunt2018-09-261-2/+2
| |\
| | * First pass at improved colorizingkotfu2018-08-111-2/+2
| | | | | | | | | | | | | | | - colors setting now allows Always, Terminal, Never values - poutput() and perror() honor these new settings
| * | Fixed unit testsKevin Van Brunt2018-09-251-2/+2
| |/
* | Add transcript test for commands with no outputkotfu2018-09-142-2/+9
|/
* Refactor transcript from history implementation and testkotfu2018-05-041-20/+0
|
* Fix transcript generate to close #385kotfu2018-05-041-0/+2
|
* Fix #384, multiline commands now appear properly in transcriptskotfu2018-05-031-4/+4
|
* Unit test for history transcript generationkotfu2018-05-031-0/+18
|
* Fix commented out transcript testskotfu2018-05-031-1/+0
|
* Restored legacy cmd/self access when locals_in_py is True. Changed default ↵Eric Lin2018-05-021-1/+1
| | | | to False
* Deleted optparse code which had been previously deprecated in 0.8.0 releaseTodd Leonhardt2018-04-091-7/+8
| | | | | Also: - Bumped version to 0.8.4
* Pushed fix for test_transcriptTodd Leonhardt2018-03-161-2/+2
|
* Removed abbrev attributeKevin Van Brunt2018-03-021-1/+0
|
* do_edit() no longer edits history, just files #252kotfu2018-01-161-1/+0
|
* Remove do_save() and do_run() for #252kotfu2018-01-161-4/+4
|
* cmdenvironment command has been removed and its functionality now exists as ↵Todd Leonhardt2018-01-151-2/+2
| | | | a -a/--all option to the set command
* Fixed the test_transcript unit test when run with the from_cmdloop.txt inputTodd Leonhardt2018-01-151-2/+2
|
* show command has been removedTodd Leonhardt2018-01-151-2/+2
| | | | | | It's functionality has been moved inside the set command. The set command now uses an argparse parser.
* __relative_load command is now hidden from help menu by defaultTodd Leonhardt2018-01-151-3/+2
|
* Add comments to all regex test filesJared Crapo2017-08-2214-9/+34
|
* regex implementation complete. Still a few bugs.Jared Crapo2017-08-219-19/+17
|
* Tweaks to some of the transcript regex testsJared Crapo2017-08-212-0/+7
|
* Add lots more transcript testsJared Crapo2017-08-2011-0/+26
|
* rename transcript filesJared Crapo2017-08-203-0/+0
|
* Move transcripts into their own directoryJared Crapo2017-08-203-0/+84