Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Standardize cmd2 imports in tests and examples | kotfu | 2018-05-23 | 16 | -66/+58 |
| | |||||
* | Fixes problem with not passing the parameter hint suppression down to ↵ | Eric Lin | 2018-05-22 | 1 | -0/+4 |
| | | | | | | | | sub-commands Added hint suppression on a per-parameter basis Added helper function to force an parameter to fall back to bash completion instead of using Cmd2 completion. - Hinting is still enabled by default but can be suppressed in the helper function. | ||||
* | Changed some unit tests to use pytest-mock instead of mocker/monkeypatch ↵ | Eric Lin | 2018-05-19 | 1 | -3/+12 |
| | | | | | | | because they were failing for me. Added detection of ==SUPPRESS== in subcommand group names to avoid printing it in the help hint. Added some examples to tab_autocompletion to demonstrate how to tie in to cmd2 path_complete | ||||
* | Some fixes to autocompleter to make it easier to do delimited and file ↵ | Eric Lin | 2018-05-18 | 1 | -1/+19 |
| | | | | completion. Saving state - more to come. | ||||
* | Extract submenu code to new project | kotfu | 2018-05-09 | 1 | -109/+0 |
| | |||||
* | Another attempt at getting it working on travis. | Eric Lin | 2018-05-04 | 1 | -3/+0 |
| | |||||
* | Merge branch 'test_merge' into test_ply_merge | Eric Lin | 2018-05-02 | 17 | -56/+71 |
|\ | |||||
| * | Merge branch 'bash_completion' into bash_to_pyscript | Eric Lin | 2018-05-02 | 17 | -55/+67 |
| |\ | |||||
| | * | Addressed comments. | Eric Lin | 2018-05-02 | 2 | -5/+2 |
| | | | |||||
| | * | Added checks to detect if argcomplete is installed. | Eric Lin | 2018-04-25 | 1 | -12/+17 |
| | | | |||||
| | * | Removed the expensive imports from cmd2/__init__.py | Eric Lin | 2018-04-25 | 17 | -52/+63 |
| | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | | Added support for customizing the pyscript bridge pystate object name. | Eric Lin | 2018-05-02 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | Removed all legacy pystate objects. Changed default behavior to clear _last_result before each command Added utility for creating named tuples with default values Added tests to exercise new changes. | ||||
| * | | Added more tests exercising the pyscript bridge. | Eric Lin | 2018-04-30 | 2 | -0/+2 |
| | | | |||||
| * | | Added support for translating function positional and keyword arguments into ↵ | Eric Lin | 2018-04-28 | 1 | -1/+1 |
| |/ | | | | | | | | | | | argparse command positional and flag arguments. Added initial set of tests | ||||
* | | Clean up documentation references to pyparsing | kotfu | 2018-04-29 | 1 | -4/+1 |
| | | |||||
* | | multilineCommands -> multiline_commands | kotfu | 2018-04-29 | 4 | -4/+4 |
|/ | |||||
* | Added support for using cmd2 application class methods as an argument ↵ | Eric Lin | 2018-04-23 | 1 | -1/+5 |
| | | | | completion provider. The default completion implementation in Cmd2 automatically passes self to AutoCompleter to be passed to the class method. | ||||
* | Addressed PR comments. Simplified some of the implementation per PR comments. | Eric Lin | 2018-04-23 | 1 | -111/+85 |
| | |||||
* | Added some more comments for clarification. | Eric Lin | 2018-04-21 | 1 | -1/+1 |
| | |||||
* | Added some documentation related to the latest changes. | Eric Lin | 2018-04-21 | 1 | -1/+9 |
| | |||||
* | Switched the default behavior in cmd2 for argparse commands to use the ↵ | Eric Lin | 2018-04-21 | 1 | -10/+1 |
| | | | | AutoCompleter by default. | ||||
* | Changed cmd2 to use autocompleter by default for all argparse commands. Not ↵ | Eric Lin | 2018-04-20 | 2 | -13/+100 |
| | | | | all tests are passing yet. | ||||
* | Started adding type hints | Todd Leonhardt | 2018-04-19 | 1 | -2/+1 |
| | |||||
* | Identified and marked a few blocks of code that can't be reached during unit ↵ | Eric Lin | 2018-04-19 | 1 | -1/+5 |
| | | | | tests due to the lack of a real terminal. Some more comments. | ||||
* | Addresses comments on #362 | Eric Lin | 2018-04-19 | 1 | -12/+12 |
| | |||||
* | Merge remote-tracking branch 'origin/master' into autocompleter | Eric Lin | 2018-04-18 | 1 | -2/+1 |
|\ | | | | | | | | | Updated AutoCompleter (#349) to match new directory structure from packaging effort. | ||||
* | | Some minor tweaks to AutoCompleter handling a collection of index-based ↵ | Eric Lin | 2018-04-17 | 1 | -1/+89 |
| | | | | | | | | | | | | | | | | | | function arguments. Added example for fully custom completion functions mixed with argparse/AutoCompleter handling - Also demonstrates the ability to pass in a list, tuple, or dict of parameters to append to the custom completion function. Added new test cases exercising the custom completion function calls. Added AutoCompleter and rl_utils to the coverage report. | ||||
* | | Added unit tests for AutoCompleter. | Eric Lin | 2018-04-16 | 1 | -11/+8 |
| | | |||||
* | | Added more advanced/complex autocompleter examples. | Eric Lin | 2018-04-16 | 1 | -20/+174 |
| | | | | | | | | Added more type hinting to AutoCompleter. | ||||
* | | Matched changes in the python3 branch. | Eric Lin | 2018-04-15 | 1 | -1/+1 |
| | | |||||
* | | Merge remote-tracking branch 'origin/python3' into autocompleter | Eric Lin | 2018-04-15 | 16 | -16/+16 |
|\ \ | |/ | |||||
| * | Started removing dependency on six | Todd Leonhardt | 2018-04-15 | 16 | -16/+16 |
| | | | | | | | | | | | | | | Removed all dependency on six other than for six.moves.input Also: - Started removing code branches which were for Python 2 support | ||||
* | | * AutoCompleter | Eric Lin | 2018-04-15 | 1 | -8/+19 |
| | | | | | | | | | | | | | | | | | | - Fixed a few bugs in AutoCompleter dealing with nargs='+' or nargs='*' - Adjusted some help output dealing with narg ranges - Fixed spacing problem with printing argument help * examples/tab_autocompletion.py - Removed debug code. - Minor changes. | ||||
* | | Merge remote-tracking branch 'origin/master' into autocompleter | Eric Lin | 2018-04-15 | 2 | -28/+3 |
|\ \ | |/ | |||||
| * | Merged master into delete_optparse branch | Todd Leonhardt | 2018-04-15 | 1 | -2/+2 |
| |\ | | | | | | | | | | | | | Also: - Bumped version to 0.9.0 | ||||
| | * | Updated comments and examples | Kevin Van Brunt | 2018-04-15 | 1 | -2/+2 |
| | | | |||||
| * | | Merge branch 'master' into delete_optparse | Todd Leonhardt | 2018-04-11 | 1 | -0/+145 |
| |\ \ | | |/ | | | | | | | | | | # Conflicts: # cmd2.py | ||||
| * | | Deleted optparse code which had been previously deprecated in 0.8.0 release | Todd Leonhardt | 2018-04-09 | 1 | -26/+1 |
| | | | | | | | | | | | | | | | Also: - Bumped version to 0.8.4 | ||||
* | | | Started working on an example for autocompleter usage. | Eric Lin | 2018-04-14 | 1 | -0/+175 |
| |/ |/| | |||||
* | | Added a with_category decorator that can be used to tag a command category. | Eric Lin | 2018-04-11 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | Changed the detection of with_argparse decorated commands to be less hacky/brittle. Now it tags the function with help_summary. Fixed issue with handling commands that provide a custom help_ function. We can now redirect the output to a string to be formatted with the other commands. Added some documentation explaining the new help categories. Updated unit tests. | ||||
* | | Fixed issue where categorization is skipped when there's a help_<command> ↵ | Eric Lin | 2018-04-11 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | function provided. In verbose help, added check for argparse usage block (starting with 'usage: '), to skip that block and move to the next comment block Added unit tests for new categorization code Updated example to demonstrate skipping of argparse usage statement | ||||
* | | Added verbose help output with help -v or help --verbose | Eric Lin | 2018-04-10 | 1 | -1/+8 |
| | | | | | | | | | | Reads the __doc__ for a command function and provides the first block of text for each command. Updated help_categories.py to demonstrate a multi-line comment block for a command. | ||||
* | | Added a convenience function for tagging command categories. | Eric Lin | 2018-04-09 | 1 | -19/+19 |
| | | |||||
* | | Added ability to group commands by category when printing the help menu. | Eric Lin | 2018-04-09 | 1 | -0/+131 |
|/ | | | | Added example of multiple commands grouped by categories | ||||
* | Simplified how to add tab completion to a subcommand | Kevin Van Brunt | 2018-03-28 | 1 | -6/+11 |
| | |||||
* | Addressed code review comments | Kevin Van Brunt | 2018-03-27 | 2 | -5/+4 |
| | |||||
* | Removed unused imports | Kevin Van Brunt | 2018-03-25 | 1 | -2/+0 |
| | |||||
* | Made subcommand specific completion work with Python 2 in the examples | Kevin Van Brunt | 2018-03-24 | 2 | -29/+31 |
| | |||||
* | Merge branch 'master' into new_quoted_completion | Kevin Van Brunt | 2018-03-23 | 1 | -2/+3 |
|\ | |||||
| * | Fixed check for whether a subcommand was entered | Kevin Van Brunt | 2018-03-23 | 1 | -2/+3 |
| | |