Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More replacing of 'colors' with 'allow_ansi' | Kevin Van Brunt | 2019-06-26 | 1 | -2/+2 |
| | |||||
* | Replaced more pexcept uses with perror | Kevin Van Brunt | 2019-06-25 | 1 | -1/+1 |
| | |||||
* | Made last_result public and restored the initialization of it in __init__ ↵ | Todd Leonhardt | 2019-06-23 | 1 | -1/+1 |
| | | | | and associated comment | ||||
* | Fixed a bunch of examples which were broken due to moving DEFAULT_SHORTCUTS ↵ | Todd Leonhardt | 2019-06-16 | 1 | -1/+1 |
| | | | | from cmd2.py to constants.py | ||||
* | Updated various documentation and tests to not use load | Todd Leonhardt | 2019-06-15 | 2 | -4/+5 |
| | |||||
* | Updated documentation | Kevin Van Brunt | 2019-06-15 | 4 | -27/+16 |
| | |||||
* | Deprecate support for Python 3.4 and begin testing with Python 3.8 beta | Todd Leonhardt | 2019-06-14 | 2 | -7/+3 |
| | |||||
* | Removed support for cmd.cmdqueue | Kevin Van Brunt | 2019-06-11 | 2 | -3/+3 |
| | | | | allow_cli_args is now an argument to __init__ instead of a cmd2 class member | ||||
* | Add the -a/--all flag to the history command for showing all commands ↵ | Todd Leonhardt | 2019-05-27 | 1 | -1/+1 |
| | | | | | | | | | | including those persisted from previous sessions Also: - History class has been modified to keep track of the session start index - History class span(), str_search(), and regex_search() methods now take an optional 2nd boolean parameter `include_persisted` which determines whether or not commands persisted from previous sessions should be included by default - If a start index is manually specified, then it automatically includes the full search - Updates unit tests | ||||
* | Refactor exit_code implementation | Todd Leonhardt | 2019-05-20 | 1 | -2/+2 |
| | | | | | | | | | | | | 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 | ||||
* | Updated docs | Kevin Van Brunt | 2019-05-16 | 1 | -1/+4 |
| | |||||
* | Added documentation for ns_provider | Kevin Van Brunt | 2019-05-16 | 1 | -1/+23 |
| | |||||
* | Now consistently use -t flag for transcript generation for both history and ↵ | Todd Leonhardt | 2019-03-19 | 1 | -2/+2 |
| | | | | load commands | ||||
* | Addressed review comments | Todd Leonhardt | 2019-03-18 | 1 | -1/+5 |
| | |||||
* | Merge branch 'master' into load_generate_transcript | Todd Leonhardt | 2019-03-18 | 2 | -9/+6 |
|\ | |||||
| * | Merge branch 'master' into attributes | Todd Leonhardt | 2019-03-17 | 1 | -1/+3 |
| |\ | |||||
| * | | Updated docs to reflect that shortcuts are now passed into the super class ↵ | Todd Leonhardt | 2019-03-14 | 1 | -5/+3 |
| | | | | | | | | | | | | initializer | ||||
| * | | First stage of attribute refactoring | Todd Leonhardt | 2019-03-13 | 2 | -4/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 load -r flag for recording a transcript based on a script file | Todd Leonhardt | 2019-03-18 | 2 | -3/+19 |
| |/ |/| | | | | | The load command now supports the -r/--record_transcript flag for recording a transcript file based on a script file. | ||||
* | | Updated docs and example | Kevin Van Brunt | 2019-03-17 | 1 | -2/+2 |
| | | |||||
* | | Added more documentation | Kevin Van Brunt | 2019-03-17 | 1 | -1/+3 |
|/ | |||||
* | Negative ending history indices include the referenced command, instead of ↵ | kotfu | 2019-03-11 | 1 | -2/+3 |
| | | | | excluding it | ||||
* | Allow both history indices to be negative | kotfu | 2019-03-10 | 1 | -2/+1 |
| | |||||
* | Incorporating requested changes from the PR | kotfu | 2019-03-10 | 1 | -3/+7 |
| | |||||
* | Formatting clean up on history section | kotfu | 2019-03-10 | 1 | -61/+67 |
| | |||||
* | Merge branch 'history_improvements' of github.com:python-cmd2/cmd2 into ↵ | kotfu | 2019-03-10 | 3 | -150/+164 |
|\ | | | | | | | history_improvements | ||||
| * | Merge branch 'master' into disable_command | Kevin Van Brunt | 2019-03-10 | 1 | -18/+2 |
| |\ | |||||
| | * | Removed obsolete documentation | Kevin Van Brunt | 2019-03-10 | 1 | -18/+2 |
| | | | |||||
| * | | Updated examples and documentation pertaining to disabling commands | Kevin Van Brunt | 2019-03-10 | 2 | -132/+162 |
| |/ | |||||
* | | Add documentation for the history command. | kotfu | 2019-03-10 | 1 | -6/+194 |
|/ | |||||
* | Fixed wording in freefeatures.rst | Todd Leonhardt | 2019-03-04 | 1 | -1/+2 |
| | |||||
* | Merge master into with_argument_list and resolved conflicts | Todd Leonhardt | 2019-03-04 | 1 | -16/+9 |
|\ | |||||
| * | Updated docs | Kevin Van Brunt | 2019-03-02 | 1 | -0/+3 |
| | | |||||
| * | Updated CodeOwners file and fixed minor errors in freefeatures.rst | Todd Leonhardt | 2019-03-02 | 1 | -5/+4 |
| | | |||||
| * | Updated docs about comments | Kevin Van Brunt | 2019-03-01 | 1 | -12/+4 |
| | | |||||
* | | Updated CHANGELOG and fixed Sphinx docs | Todd Leonhardt | 2019-03-04 | 1 | -5/+4 |
|/ | |||||
* | Updated macro documentation0.9.9 | Kevin Van Brunt | 2019-02-21 | 1 | -4/+2 |
| | |||||
* | Minor doc updates that fix a few typos and inaccuracies | Todd Leonhardt | 2019-02-06 | 3 | -8/+9 |
| | |||||
* | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Update docs with smart ANSI handling for ppaged | Ethan McCreadie | 2018-11-01 | 1 | -8/+9 |
| | |||||
* | Removed a few unecessary newlines | Todd Leonhardt | 2018-10-26 | 1 | -3/+0 |
| | |||||
* | Improved documentation for argument parsing decorators | Todd Leonhardt | 2018-10-26 | 1 | -0/+17 |
| | | | | | Also: - Improved type hinting for these decorators | ||||
* | Refactored filtering in path_complete to use a function | Kevin Van Brunt | 2018-10-26 | 1 | -1/+1 |
| | |||||
* | cmdloop now checks to see if it is running in the main thread before ↵ | Todd Leonhardt | 2018-10-21 | 1 | -0/+4 |
| | | | | attempting to register a signal handler for SIGINT | ||||
* | Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were ↵ | Todd Leonhardt | 2018-10-18 | 1 | -3/+0 |
| | | | | deprecated in 0.9.5 | ||||
* | Documentation updates | Kevin Van Brunt | 2018-10-12 | 1 | -3/+1 |
| | |||||
* | Added warning to documentation about how help_foo won't be called for ↵ | Todd Leonhardt | 2018-10-06 | 1 | -2/+10 |
| | | | | | | | command foo if it uses an argparse decorator Also: - Renamed argparse_example.py to decorator_example.py | ||||
* | Added documentation stating that parsers passed to argparse decorators need ↵ | Todd Leonhardt | 2018-10-06 | 1 | -2/+14 |
| | | | | | | | to be unique Also: - Modified table_display.py to demonstrate a workaround | ||||
* | Merge branch 'macro' into argparse_conversion | Kevin Van Brunt | 2018-09-27 | 1 | -8/+45 |
|\ | |||||
| * | Documented macros | Kevin Van Brunt | 2018-09-27 | 1 | -8/+45 |
| | |