Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Removed dash from 'tab complete' string | Kevin Van Brunt | 2020-02-13 | 1 | -1/+1 |
| | |||||
* | Updated help text | Kevin Van Brunt | 2020-02-05 | 1 | -1/+1 |
| | |||||
* | Removed unnecessary inheritance from object | Kevin Van Brunt | 2020-02-04 | 1 | -1/+1 |
| | |||||
* | Updated set command to support tab completion of values | Kevin Van Brunt | 2020-02-04 | 1 | -5/+5 |
| | |||||
* | Made three public attributes of cmd2.Cmd no longer settable at runtime by ↵ | Todd Leonhardt | 2020-01-27 | 1 | -6/+0 |
| | | | | | | | | | end users The 3 attributes are: - continuation_prompt - locals_in_py - prompt | ||||
* | Updated documentation | Kevin Van Brunt | 2020-01-07 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into ansi_to_style | Kevin Van Brunt | 2019-12-19 | 1 | -0/+9 |
|\ | |||||
| * | Updating unit tests | Kevin Van Brunt | 2019-12-17 | 1 | -0/+9 |
| | | |||||
* | | Changed allow_ansi to allow_style for accuracy in what types of ANSI escape ↵ | Kevin Van Brunt | 2019-12-19 | 1 | -2/+2 |
|/ | | | | sequences are handled | ||||
* | Fixed documentation for run_script and renamed history option | Kevin Van Brunt | 2019-07-16 | 1 | -4/+4 |
| | |||||
* | Make max_completion_items settable | Kevin Van Brunt | 2019-07-15 | 1 | -0/+2 |
| | |||||
* | Renamed colors setting to allow_ansi | Kevin Van Brunt | 2019-06-26 | 1 | -2/+2 |
| | |||||
* | Restored a few attributes to be public | Todd Leonhardt | 2019-06-23 | 1 | -1/+1 |
| | |||||
* | Added verify_help_text() helper function for tests and removed BASE_HELP and ↵ | Todd Leonhardt | 2019-06-15 | 1 | -26/+18 |
| | | | | | | BASE_HELP_VERBOSE constants The tests are now much more resilient to adding, removing, or renaming commands | ||||
* | Began work to minimize public API | Todd Leonhardt | 2019-06-15 | 1 | -1/+1 |
| | |||||
* | Fixing unit tests | Kevin Van Brunt | 2019-06-15 | 1 | -4/+6 |
| | |||||
* | Deprecate support for Python 3.4 and begin testing with Python 3.8 beta | Todd Leonhardt | 2019-06-14 | 1 | -6/+1 |
| | |||||
* | Removed copyright headers from source files and updated LICENSE with current ↵ | Kevin Van Brunt | 2019-06-07 | 1 | -3/+0 |
| | | | | year | ||||
* | Changed wrapping point of history's help text to match all other help text ↵ | Kevin Van Brunt | 2019-06-05 | 1 | -1/+2 |
| | | | | in cmd2 | ||||
* | Add the -a/--all flag to the history command for showing all commands ↵ | Todd Leonhardt | 2019-05-27 | 1 | -1/+2 |
| | | | | | | | | | | 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 | ||||
* | Fixed parsing issue in case where output redirection (e.g. > file) appears ↵ | Kevin Van Brunt | 2019-05-13 | 1 | -4/+8 |
| | | | | | | before a pipe. In that case, the pipe was given precedence even though it appeared later in the command. | ||||
* | Made run_cmd return out and err | Kevin Van Brunt | 2019-03-20 | 1 | -9/+31 |
| | |||||
* | Move the rest of the history tests into test_history.py | kotfu | 2019-02-09 | 1 | -6/+11 |
| | |||||
* | Merge branch 'master' into history | Kevin Van Brunt | 2018-12-06 | 1 | -2/+2 |
|\ | |||||
| * | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | | First version of adding an expanded option to history items | Kevin Van Brunt | 2018-12-03 | 1 | -1/+2 |
|/ | |||||
* | Made it so default_to_shell results in do_shell being called so that output ↵ | Kevin Van Brunt | 2018-11-30 | 1 | -1/+1 |
| | | | | can be captured | ||||
* | Merge branch 'macro' into argparse_conversion | Kevin Van Brunt | 2018-09-28 | 1 | -3/+2 |
|\ | |||||
| * | Addressing code review comments | Kevin Van Brunt | 2018-09-28 | 1 | -3/+2 |
| | | |||||
* | | Merge branch 'macro' into argparse_conversion | Kevin Van Brunt | 2018-09-27 | 1 | -3/+1 |
|\ \ | |/ | |||||
| * | Made _func_named() more reliable | Kevin Van Brunt | 2018-09-27 | 1 | -3/+1 |
| | | | | | | | | Added unit tests | ||||
* | | Converted help to argparse | Kevin Van Brunt | 2018-09-26 | 1 | -1/+1 |
| | | |||||
* | | Tweaked help text | Kevin Van Brunt | 2018-09-26 | 1 | -5/+5 |
| | | |||||
* | | Merge branch 'macro' into argparse_conversion | Kevin Van Brunt | 2018-09-26 | 1 | -13/+5 |
|\ \ | |/ | |||||
| * | Merge branch 'master' into macro | Kevin Van Brunt | 2018-09-26 | 1 | -12/+4 |
| |\ | |||||
| | * | Merged master in to colorize and resolved conflicts | Todd Leonhardt | 2018-09-24 | 1 | -22/+4 |
| | |\ | |||||
| | * \ | Merge branch 'master' into colorize | Todd Leonhardt | 2018-09-21 | 1 | -6/+7 |
| | |\ \ | |||||
| | * | | | cmd2.Cmd.__init__ now initializes colorama and tells it to never strip ANSI ↵ | Todd Leonhardt | 2018-09-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | codes since cmd2 deals with that Also: - Finished editing poutput(), ppaged(), and pfeedback() methods to strip ANSI color when appropriate - Changed attr.ib() factory usage so cmd2 is compatible with older versions of attrs | ||||
| | * | | | Merged master into colorize branch | Todd Leonhardt | 2018-09-12 | 1 | -8/+8 |
| | |\ \ \ | |||||
| | * \ \ \ | Merged master in and resolved conflicts | Todd Leonhardt | 2018-09-04 | 1 | -4/+4 |
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | @kotfu - I hope this doesn't screw you up, but I wanted to minimize some of the merge pain that will likely be coming up soon | ||||
| | * | | | | | First pass at improved colorizing | kotfu | 2018-08-11 | 1 | -11/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - colors setting now allows Always, Terminal, Never values - poutput() and perror() honor these new settings | ||||
| * | | | | | | Updated documentation | Kevin Van Brunt | 2018-09-26 | 1 | -2/+2 |
| | | | | | | | |||||
* | | | | | | | First steps in converting all commands to argparse | Kevin Van Brunt | 2018-09-26 | 1 | -8/+8 |
|/ / / / / / | |||||
* | | | | | | Fixing unit tests | Kevin Van Brunt | 2018-09-25 | 1 | -5/+5 |
| |_|_|_|/ |/| | | | | |||||
* | | | | | Fixed several hack classes build to simulate file descriptors | Todd Leonhardt | 2018-09-23 | 1 | -18/+4 |
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | | | | Removed remaining type hints in docstrings | Kevin Van Brunt | 2018-09-21 | 1 | -6/+7 |
| |_|/ |/| | | |||||
* | | | Docstring updates | Kevin Van Brunt | 2018-09-09 | 1 | -8/+8 |
| |/ |/| | |||||
* | | ACHelpFormatter now inherits from argparse.RawTextHelpFormatter to make it ↵ | Kevin Van Brunt | 2018-08-24 | 1 | -4/+4 |
|/ | | | | easier to format help/description text | ||||
* | Added --clear argument to history command | Kevin Van Brunt | 2018-07-11 | 1 | -3/+4 |
| | | | | | | Added better error checking when loading readline history file Improved some error messages Changed IOError usages to OSError since they were merged in Python 3.3. | ||||
* | Standardize cmd2 imports in tests and examples | kotfu | 2018-05-23 | 1 | -1/+1 |
| |