summaryrefslogtreecommitdiff
path: root/docs
Commit message (Collapse)AuthorAgeFilesLines
* More replacing of 'colors' with 'allow_ansi'Kevin Van Brunt2019-06-261-2/+2
|
* Replaced more pexcept uses with perrorKevin Van Brunt2019-06-251-1/+1
|
* Made last_result public and restored the initialization of it in __init__ ↵Todd Leonhardt2019-06-231-1/+1
| | | | and associated comment
* Fixed a bunch of examples which were broken due to moving DEFAULT_SHORTCUTS ↵Todd Leonhardt2019-06-161-1/+1
| | | | from cmd2.py to constants.py
* Updated various documentation and tests to not use loadTodd Leonhardt2019-06-152-4/+5
|
* Updated documentationKevin Van Brunt2019-06-154-27/+16
|
* Deprecate support for Python 3.4 and begin testing with Python 3.8 betaTodd Leonhardt2019-06-142-7/+3
|
* Removed support for cmd.cmdqueueKevin Van Brunt2019-06-112-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 Leonhardt2019-05-271-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 implementationTodd Leonhardt2019-05-201-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 docsKevin Van Brunt2019-05-161-1/+4
|
* Added documentation for ns_providerKevin Van Brunt2019-05-161-1/+23
|
* Now consistently use -t flag for transcript generation for both history and ↵Todd Leonhardt2019-03-191-2/+2
| | | | load commands
* Addressed review commentsTodd Leonhardt2019-03-181-1/+5
|
* Merge branch 'master' into load_generate_transcriptTodd Leonhardt2019-03-182-9/+6
|\
| * Merge branch 'master' into attributesTodd Leonhardt2019-03-171-1/+3
| |\
| * | Updated docs to reflect that shortcuts are now passed into the super class ↵Todd Leonhardt2019-03-141-5/+3
| | | | | | | | | | | | initializer
| * | First stage of attribute refactoringTodd Leonhardt2019-03-132-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 fileTodd Leonhardt2019-03-182-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 exampleKevin Van Brunt2019-03-171-2/+2
| |
* | Added more documentationKevin Van Brunt2019-03-171-1/+3
|/
* Negative ending history indices include the referenced command, instead of ↵kotfu2019-03-111-2/+3
| | | | excluding it
* Allow both history indices to be negativekotfu2019-03-101-2/+1
|
* Incorporating requested changes from the PRkotfu2019-03-101-3/+7
|
* Formatting clean up on history sectionkotfu2019-03-101-61/+67
|
* Merge branch 'history_improvements' of github.com:python-cmd2/cmd2 into ↵kotfu2019-03-103-150/+164
|\ | | | | | | history_improvements
| * Merge branch 'master' into disable_commandKevin Van Brunt2019-03-101-18/+2
| |\
| | * Removed obsolete documentationKevin Van Brunt2019-03-101-18/+2
| | |
| * | Updated examples and documentation pertaining to disabling commandsKevin Van Brunt2019-03-102-132/+162
| |/
* | Add documentation for the history command.kotfu2019-03-101-6/+194
|/
* Fixed wording in freefeatures.rstTodd Leonhardt2019-03-041-1/+2
|
* Merge master into with_argument_list and resolved conflictsTodd Leonhardt2019-03-041-16/+9
|\
| * Updated docsKevin Van Brunt2019-03-021-0/+3
| |
| * Updated CodeOwners file and fixed minor errors in freefeatures.rstTodd Leonhardt2019-03-021-5/+4
| |
| * Updated docs about commentsKevin Van Brunt2019-03-011-12/+4
| |
* | Updated CHANGELOG and fixed Sphinx docsTodd Leonhardt2019-03-041-5/+4
|/
* Updated macro documentation0.9.9Kevin Van Brunt2019-02-211-4/+2
|
* Minor doc updates that fix a few typos and inaccuraciesTodd Leonhardt2019-02-063-8/+9
|
* Fix flake8 issuesTodd Leonhardt2018-12-061-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 ppagedEthan McCreadie2018-11-011-8/+9
|
* Removed a few unecessary newlinesTodd Leonhardt2018-10-261-3/+0
|
* Improved documentation for argument parsing decoratorsTodd Leonhardt2018-10-261-0/+17
| | | | | Also: - Improved type hinting for these decorators
* Refactored filtering in path_complete to use a functionKevin Van Brunt2018-10-261-1/+1
|
* cmdloop now checks to see if it is running in the main thread before ↵Todd Leonhardt2018-10-211-0/+4
| | | | attempting to register a signal handler for SIGINT
* Deleted Cmd.colorize() method and Cmd._colorcodes dictionary which were ↵Todd Leonhardt2018-10-181-3/+0
| | | | deprecated in 0.9.5
* Documentation updatesKevin Van Brunt2018-10-121-3/+1
|
* Added warning to documentation about how help_foo won't be called for ↵Todd Leonhardt2018-10-061-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 Leonhardt2018-10-061-2/+14
| | | | | | | to be unique Also: - Modified table_display.py to demonstrate a workaround
* Merge branch 'macro' into argparse_conversionKevin Van Brunt2018-09-271-8/+45
|\
| * Documented macrosKevin Van Brunt2018-09-271-8/+45
| |