Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed bug where setting always_show_hint=True did not show a hint when ↵settable_hint | Kevin Van Brunt | 2020-11-12 | 1 | -0/+1 |
| | | | | completing Settables | ||||
* | Marked with_arparser_and_unknown_args deprecated and consolidated | Eric Lin | 2020-08-04 | 1 | -1/+1 |
| | | | | 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 | -0/+1 |
| | | | | | | | 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 | ||||
* | Only tab complete after redirection tokens if redirection is allowed | Kevin Van Brunt | 2020-02-17 | 1 | -28/+32 |
| | |||||
* | Removed dash from 'tab complete' string | Kevin Van Brunt | 2020-02-13 | 1 | -7/+7 |
| | |||||
* | Added unit tests | Kevin Van Brunt | 2020-02-05 | 1 | -10/+41 |
| | |||||
* | Made some cmd2 module constants cmd2.Cmd class constants | Kevin Van Brunt | 2019-10-31 | 1 | -2/+2 |
| | |||||
* | Removed all instances where a parser's prog attribute was being set since ↵ | Kevin Van Brunt | 2019-10-30 | 1 | -1/+1 |
| | | | | this is no longer needed | ||||
* | No longer printing all help text for alias and macro when the subcommand is ↵ | Kevin Van Brunt | 2019-09-17 | 1 | -1/+1 |
| | | | | omitted. Instead allow argparse to handle the error. | ||||
* | Added capability for an argparse-based command's completer/choice functions ↵ | Kevin Van Brunt | 2019-08-13 | 1 | -12/+4 |
| | | | | | | | to receive a namespace of all arguments parsed up to token being completed. This will make it easier to have a previous argument's value affect what data is tab-completed. | ||||
* | Updated unit tests | Kevin Van Brunt | 2019-08-02 | 1 | -7/+8 |
| | |||||
* | Fixed inconsistent parsing/tab completion behavior based on the value of ↵ | Kevin Van Brunt | 2019-08-02 | 1 | -15/+0 |
| | | | | | | `allow_redirection`. This flag is only meant to be a security setting that prevents redirection of stdout and should not alter parsing logic. | ||||
* | Changed all uses of sub-command to subcommand | Kevin Van Brunt | 2019-07-19 | 1 | -18/+18 |
| | |||||
* | Added unit tests for tab completing multiline commands | Kevin Van Brunt | 2019-07-17 | 1 | -10/+46 |
| | |||||
* | Renamed matches_sort_key to default_sort_key and using it to sort additional d | Kevin Van Brunt | 2019-07-15 | 1 | -3/+3 |
| | |||||
* | Merge branch 'master' into auto_completer_refactor | Kevin Van Brunt | 2019-07-11 | 1 | -2/+2 |
|\ | |||||
| * | Restore self.statement_parser to a public attribute in cmd2.Cmd | Todd Leonhardt | 2019-07-10 | 1 | -2/+2 |
| | | |||||
* | | Fixing unit tests | Kevin Van Brunt | 2019-07-04 | 1 | -5/+4 |
| | | |||||
* | | Moved basic_complete to utils | Kevin Van Brunt | 2019-07-02 | 1 | -5/+5 |
|/ | |||||
* | Added unit tests for _redirect_complete | Kevin Van Brunt | 2019-06-30 | 1 | -1/+74 |
| | |||||
* | Made tokens_for_completion() method public since a couple of our examples use it | Todd Leonhardt | 2019-06-23 | 1 | -5/+5 |
| | |||||
* | Restored a few attributes to be public | Todd Leonhardt | 2019-06-23 | 1 | -38/+38 |
| | |||||
* | Began work to minimize public API | Todd Leonhardt | 2019-06-15 | 1 | -46/+46 |
| | |||||
* | Updated various documentation and tests to not use load | Todd Leonhardt | 2019-06-15 | 1 | -1/+1 |
| | |||||
* | Fixed unit tests | Kevin Van Brunt | 2019-06-15 | 1 | -1/+1 |
| | |||||
* | Removed copyright headers from source files and updated LICENSE with current ↵ | Kevin Van Brunt | 2019-06-07 | 1 | -3/+0 |
| | | | | year | ||||
* | Increased code coverage of _complete_worker() to 100% | Kevin Van Brunt | 2019-05-13 | 1 | -2/+43 |
| | |||||
* | Exceptions occurring in tab completion functions are now printed to stderr ↵ | Kevin Van Brunt | 2019-05-06 | 1 | -0/+18 |
| | | | | before returning control back to readline | ||||
* | Added unit test for path completion in root directory | Kevin Van Brunt | 2019-04-05 | 1 | -0/+19 |
| | |||||
* | Made run_cmd return out and err | Kevin Van Brunt | 2019-03-20 | 1 | -1/+1 |
| | |||||
* | Aliases are now stored within the StatementParser instance | Todd Leonhardt | 2019-03-16 | 1 | -1/+1 |
| | | | | | | | Also: - Added read-only aliases property to cmd2.Cmd to get aliases from the StatementParser - Added a setter for the allow_redirection property in cmd2.Cmd - Made some initialization code more self-documenting | ||||
* | First stage of attribute refactoring | Todd Leonhardt | 2019-03-13 | 1 | -3/+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 unit test for matches_sort_key | Kevin Van Brunt | 2019-02-27 | 1 | -1/+27 |
| | |||||
* | 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 | ||||
* | Added more code coverage of shell_cmd_complete | Kevin Van Brunt | 2018-10-26 | 1 | -0/+15 |
| | |||||
* | Added more coverage for path_complete | Kevin Van Brunt | 2018-10-26 | 1 | -3/+24 |
| | |||||
* | Refactored filtering in path_complete to use a function | Kevin Van Brunt | 2018-10-26 | 1 | -1/+1 |
| | |||||
* | Added code to handle -- in argparse completer | Kevin Van Brunt | 2018-10-10 | 1 | -25/+0 |
| | |||||
* | Increasing code coverage | Kevin Van Brunt | 2018-10-09 | 1 | -0/+24 |
| | |||||
* | Using sub-command instead of subcommand where possible to be consistent with ↵ | Kevin Van Brunt | 2018-10-05 | 1 | -18/+18 |
| | | | | argparse | ||||
* | Added more code coverage with unit tests | Kevin Van Brunt | 2018-09-28 | 1 | -0/+17 |
| | |||||
* | Added more code coverage | Kevin Van Brunt | 2018-09-28 | 1 | -0/+9 |
| | |||||
* | Merge branch 'macro' into argparse_conversion | Kevin Van Brunt | 2018-09-28 | 1 | -4/+4 |
|\ | |||||
| * | Addressing code review comments | Kevin Van Brunt | 2018-09-28 | 1 | -4/+4 |
| | | |||||
* | | Merge branch 'macro' into argparse_conversion | Kevin Van Brunt | 2018-09-27 | 1 | -1/+18 |
|\ \ | |/ | |||||
| * | Made _func_named() more reliable | Kevin Van Brunt | 2018-09-27 | 1 | -1/+18 |
| | | | | | | | | Added unit tests | ||||
* | | Ported shell to argparse | Kevin Van Brunt | 2018-09-27 | 1 | -5/+14 |
| | | |||||
* | | Fixed unit tests for help completion | Kevin Van Brunt | 2018-09-26 | 1 | -13/+32 |
| | | |||||
* | | Converted help to argparse | Kevin Van Brunt | 2018-09-26 | 1 | -1/+1 |
|/ | |||||
* | Fixed several hack classes build to simulate file descriptors | Todd Leonhardt | 2018-09-23 | 1 | -11/+3 |
| | | | | | | | | | 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 |