| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | 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 | ||||
| * | Updated docs and unit tests | Kevin Van Brunt | 2018-08-02 | 1 | -1/+1 |
| | | |||||
| * | Added alphabetical_sort() function | Kevin Van Brunt | 2018-08-01 | 1 | -1/+1 |
| | | |||||
| * | Added matches_sorted member to support custom sorting order of ↵ | Kevin Van Brunt | 2018-08-01 | 1 | -3/+3 |
| | | | | | | | | tab-completion matches Made all sorting alphabetical Fixed case where extra slash was printing when tab completing users on Windows | ||||
| * | Merge branch 'master' into speedup_import | kotfu | 2018-05-23 | 1 | -123/+1 |
| |\ | | | | | | | | | | | | | # Conflicts: # cmd2/cmd2.py # tests/test_completion.py # tests/test_submenu.py | ||||
| | * | Extract submenu code to new project | kotfu | 2018-05-09 | 1 | -121/+0 |
| | | | |||||
| * | | Extract AddSubmenu() into it’s own module | kotfu | 2018-05-06 | 1 | -2/+3 |
| |/ | |||||
| * | Rename some test functions to fix #388 | kotfu | 2018-05-05 | 1 | -6/+6 |
| | | |||||
| * | Merge branch 'test_merge' into test_ply_merge | Eric Lin | 2018-05-02 | 1 | -1/+1 |
| |\ | |||||
| | * | Merge remote-tracking branch 'origin/master' into bash_completion | Eric Lin | 2018-04-27 | 1 | -5/+6 |
| | |\ | | | | | | | | | | Updated argcomplete_bridge to use new constants/utils. | ||||
| | * | | Removed the expensive imports from cmd2/__init__.py | Eric Lin | 2018-04-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | | | Merge branch 'ply' of github.com:python-cmd2/cmd2 into ply | kotfu | 2018-04-26 | 1 | -5/+6 |
| |\ \ \ | | |/ | |/| | |||||
| | * | | No longer running test_path_completion_complete_user unit test on Windows | Kevin Van Brunt | 2018-04-26 | 1 | -5/+6 |
| | |/ | |||||
| * | | First stage of refactoring cmd2.parseline() for tab completion | kotfu | 2018-04-26 | 1 | -38/+0 |
| |/ | |||||
| * | Switched the default behavior in cmd2 for argparse commands to use the ↵ | Eric Lin | 2018-04-21 | 1 | -80/+9 |
| | | | | | AutoCompleter by default. | ||||
| * | Addresses comments on #362 | Eric Lin | 2018-04-19 | 1 | -14/+9 |
| | | |||||
| * | Adjusted some coverage configuration. Found and fixed bug in help completion. | Eric Lin | 2018-04-18 | 1 | -49/+181 |
| | | |||||
| * | Removed unit test dependency on mock | Todd Leonhardt | 2018-04-15 | 1 | -1/+1 |
| | | | | | | mock was a backport of Python's built in unittest.mock and was required for Python 3.2 or earlier - Since we now support Python 3.4+ moving forward we no longer need to make use of the 3rd party mock module | ||||
| * | Renamed variable to match what its called in cmd2.py | Kevin Van Brunt | 2018-04-15 | 1 | -6/+6 |
| | | |||||
| * | Updated comments and examples | Kevin Van Brunt | 2018-04-15 | 1 | -1/+1 |
| | | |||||
| * | More unit tests and comments | Kevin Van Brunt | 2018-04-15 | 1 | -3/+18 |
| | | |||||
| * | More opening quote unit tests | Kevin Van Brunt | 2018-04-15 | 1 | -3/+63 |
| | | |||||
| * | Unit tests for adding opening quote | Kevin Van Brunt | 2018-04-15 | 1 | -18/+68 |
| | | |||||
| * | Simplifying adding opening quotes | Kevin Van Brunt | 2018-04-13 | 1 | -4/+1 |
| | | |||||
| * | Trying to fix Windows unit test when running on AppVeyor | Kevin Van Brunt | 2018-04-13 | 1 | -3/+3 |
| | | |||||
| * | Added some basic user completion on Windows | Kevin Van Brunt | 2018-04-13 | 1 | -6/+2 |
| | | |||||
| * | Allowing the use of ~user expansion in paths | Kevin Van Brunt | 2018-04-12 | 1 | -14/+12 |
| | | |||||
| * | Added alias parse_line unit test | Kevin Van Brunt | 2018-04-02 | 1 | -0/+10 |
| | | |||||
| * | Removed unnecessary sorting and duplicate removal from the completers since all | Kevin Van Brunt | 2018-03-31 | 1 | -10/+18 |
| | | | | | | | results from these functions are returned to complete() which already does these things. These changes also provide better examples of what is required to write a completer and what isn't. | ||||
