Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Resolves comments from PRcmdset_settables | Eric Lin | 2021-03-18 | 1 | -1/+1 |
| | |||||
* | Add in isort changes | Todd Leonhardt | 2021-01-31 | 1 | -2/+6 |
| | |||||
* | Add black for automatic code format | Todd Leonhardt | 2021-01-31 | 1 | -48/+53 |
| | |||||
* | Changed isort to force wrapping of imports to reduce merge conflicts from ↵ | Eric Lin | 2021-01-22 | 1 | -5/+15 |
| | | | | minor import changes. | ||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 1 | -2/+3 |
| | | | | implementation as an option to with_argparser instead. | ||||
* | Added info on semantic versioning and branching strategy to CONTRIBUTING.md | Todd Leonhardt | 2020-04-24 | 1 | -5/+6 |
| | | | | | | | Also: - Added isort to Pipenv dev - Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke - Ran isort to sort includes | ||||
* | Add unit tests for Ctrl-C stopping scripts/transcripts | Kevin Van Brunt | 2020-03-26 | 1 | -0/+9 |
| | |||||
* | Updated set command to support tab completion of values | Kevin Van Brunt | 2020-02-04 | 1 | -2/+2 |
| | |||||
* | No longer printing all help text for alias and macro when the subcommand is ↵ | Kevin Van Brunt | 2019-09-17 | 1 | -2/+2 |
| | | | | omitted. Instead allow argparse to handle the error. | ||||
* | Added verify_help_text() helper function for tests and removed BASE_HELP and ↵ | Todd Leonhardt | 2019-06-15 | 1 | -4/+3 |
| | | | | | | BASE_HELP_VERBOSE constants The tests are now much more resilient to adding, removing, or renaming commands | ||||
* | Updated various documentation and tests to not use load | Todd Leonhardt | 2019-06-15 | 1 | -3/+3 |
| | |||||
* | Updated unit test | Kevin Van Brunt | 2019-06-12 | 1 | -4/+3 |
| | |||||
* | Transcript generation no longer terminates _cmdloop() when a command returns ↵ | Kevin Van Brunt | 2019-06-12 | 1 | -4/+3 |
| | | | | True for stop | ||||
* | Fixed unit tests | Kevin Van Brunt | 2019-06-12 | 1 | -18/+20 |
| | |||||
* | Removed support for cmd.cmdqueue | Kevin Van Brunt | 2019-06-11 | 1 | -17/+15 |
| | | | | allow_cli_args is now an argument to __init__ instead of a cmd2 class member | ||||
* | Added unit test for stopping during transcript generation | Kevin Van Brunt | 2019-06-10 | 1 | -0/+23 |
| | |||||
* | Removed copyright headers from source files and updated LICENSE with current ↵ | Kevin Van Brunt | 2019-06-07 | 1 | -3/+0 |
| | | | | year | ||||
* | Refactored how and when transcript file glob patterns are expanded in order ↵ | Todd Leonhardt | 2019-06-06 | 1 | -1/+20 |
| | | | | to present a better error message to user | ||||
* | 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 | 1 | -1/+28 |
| | | | | | | | | | | | | 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 | ||||
* | 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 | 1 | -2/+1 |
|\ | |||||
| * | First stage of attribute refactoring | Todd Leonhardt | 2019-03-13 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | | Added a unit test for "load -r" | Todd Leonhardt | 2019-03-18 | 1 | -1/+30 |
|/ | |||||
* | Clean up unused variables | kotfu | 2019-03-09 | 1 | -2/+2 |
| | |||||
* | Changed examples to reflect that settable doesn't need to be updated before ↵ | Kevin Van Brunt | 2019-02-20 | 1 | -2/+3 |
| | | | | calling init() | ||||
* | Fix Deprecation warnings for escape sequences | kotfu | 2018-12-06 | 1 | -5/+5 |
| | |||||
* | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings. Predominantly these are whitespace changes. Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline: * flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first. One flake8 error is being ignored entirely: * E252 missing whitespace around parameter equals * ignored because it doesn't correctly deal with default argument values after a type hint A few flake8 errors are being selectively ignored in certain files: * C901 fuction is too complex * ignored in argparse_completer.py because the complex code is an override of argparse complexity * E302 expected 2 blank lines after ... * ignored in all unit test files for convenience * F401 module imported but unused * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility * F821 undefined name * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined | ||||
* | Fixed transcript testing bug where last command in transcript has no ↵ | Todd Leonhardt | 2018-09-30 | 1 | -0/+1 |
| | | | | | | | expected output Also: - Added unit test for this specific case | ||||
* | Merged master into transcript_fixes branch and resolved conflicts | Todd Leonhardt | 2018-09-30 | 1 | -7/+9 |
|\ | |||||
| * | Fixed several hack classes build to simulate file descriptors | Todd Leonhardt | 2018-09-23 | 1 | -7/+9 |
| | | | | | | | | | | | | | | | | | | Now there is a single class, StdSim in utils.py, which is intended to simulate stdout and stderr file objects. This class replaced the following: - pyscript_bridge.py::CopyStream - transcript.py::OutputTrap - conftest.py::StdOut | ||||
* | | Add transcript test for commands with no output | kotfu | 2018-09-14 | 1 | -1/+6 |
|/ | |||||
* | Fixed a couple potential crashes on opening files | Todd Leonhardt | 2018-06-06 | 1 | -0/+26 |
| | | | | | | | | Fixed crashes that occur when attempting to open a file in a non-existent directory or a when the filename is too long. Specifically fixed this when redirecting output to a file and when saving a transcript based on the history. Also added a couple unit tests related to the fixes. | ||||
* | Standardize cmd2 imports in tests and examples | kotfu | 2018-05-23 | 1 | -1/+1 |
| | |||||
* | Defer import of unittest | kotfu | 2018-05-06 | 1 | -1/+2 |
| | |||||
* | Refactor transcript from history implementation and test | kotfu | 2018-05-04 | 1 | -10/+8 |
| | |||||
* | Fix transcript generate to close #385 | kotfu | 2018-05-04 | 1 | -0/+1 |
| | |||||
* | Fix #384, multiline commands now appear properly in transcripts | kotfu | 2018-05-03 | 1 | -2/+1 |
| | |||||
* | Unit test for history transcript generation | kotfu | 2018-05-03 | 1 | -108/+31 |
| | |||||
* | Moved some argparse tests from test_transcript.py to test_argparse.py | kotfu | 2018-05-03 | 1 | -31/+0 |
| | |||||
* | Fix commented out transcript tests | kotfu | 2018-05-03 | 1 | -4/+3 |
| | |||||
* | Merge branch 'test_merge' into test_ply_merge | Eric Lin | 2018-05-02 | 1 | -3/+3 |
|\ | |||||
| * | Removed the expensive imports from cmd2/__init__.py | Eric Lin | 2018-04-25 | 1 | -4/+4 |
| | | | | | | | | | | | | | | Added some shared definitions to cmd2/__init__.py -> maybe there's a better place for these? Figured out how to trick bash into showing argument hints. It's a bit weird. Updated all of the tests and examples to import cmd2 resources from their new location without the automatic imports in cmd2/__init__.py For #369 | ||||
* | | multilineCommands -> multiline_commands | kotfu | 2018-04-29 | 1 | -2/+2 |
| | | |||||
* | | Remove POSIX_SHLEX and STRIP_QUOTES_FOR_NON_POSIX | kotfu | 2018-04-25 | 1 | -5/+0 |
|/ | |||||
* | Cleaned up __init__.py | Todd Leonhardt | 2018-04-17 | 1 | -5/+5 |
| | | | | | Removed things which were only needed for unit tests from __init__.py - Converted to importing from cmd2.cmd2.<foo> within the relevant unit tests | ||||
* | Most of the unit tests fixed. | kotfu | 2018-04-16 | 1 | -1/+1 |
| | |||||
* | Basic structure for cmd2 as a package | kotfu | 2018-04-16 | 1 | -1/+1 |
| | |||||
* | Revert "Basic structure for cmd2 as a package" | kotfu | 2018-04-16 | 1 | -1/+1 |
| | | | | This reverts commit 4a3d01b679c5db7f6cb670ca981a953eb3b98dc5. |