Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | | |||||
* | | Renamed exclude_from_help to hidden_commands | Kevin Van Brunt | 2018-03-22 | 1 | -4/+4 |
|/ | | | | | Renamed excludeFromHistory to exclude_from_history No longer tab completing hidden commands | ||||
* | Added an extra check to ppaged() to make sure cmd2 app is running in a real ↵ | Todd Leonhardt | 2018-03-20 | 1 | -0/+4 |
| | | | | terminal before attempting to use a pager | ||||
* | Added a default signal handler for SIGINT (Ctrl-C) | Todd Leonhardt | 2018-03-19 | 1 | -3/+3 |
| | | | | | | | | | | Added a default signal handler for SIGINT that does the following: - Terminates a pipe process if one exists - Raises a KeyboardInterrupt for other parts othe code to catch Also: - Changed the default value for quit_on_sigint to False - Modified the way the subcommand functions are called in subcommand.py (unrelated to rest of commit) | ||||
* | Merge branch 'master' into startup_script | Todd Leonhardt | 2018-03-16 | 1 | -4/+0 |
|\ | |||||
| * | Updated one example so it can be used properly with default_to_shell | Todd Leonhardt | 2018-03-16 | 1 | -4/+0 |
| | | |||||
* | | Added ability to specify a startup_script in cmd2.Cmd.__init__() | Todd Leonhardt | 2018-03-16 | 2 | -0/+26 |
|/ | |||||
* | Fix unit tests and example | Todd Leonhardt | 2018-03-16 | 1 | -2/+5 |
| | | | | | | functools.partialmethod() was added in Python 3.4, so it can't be used in Python 2.7. - Modified the code to skip trying to use it for Python 2.7 - Skip the two unit tests which test its usage on Python 2.7 | ||||
* | Added unit tests and examples for tab completion of subcommands | Kevin Van Brunt | 2018-03-16 | 1 | -7/+27 |
| | |||||
* | No longer need to manually specify subcommand names for tab completion | Kevin Van Brunt | 2018-03-14 | 1 | -4/+1 |
| | |||||
* | Added table_display.py | Todd Leonhardt | 2018-03-14 | 1 | -0/+64 |
| | | | | | | | | Added example showing how to display tabular data in a cmd2 application. Also: - Updated CHANGELOG with data on all PRs since last release - Bumped version to 0.8.2 in preparation for next release | ||||
* | Use self.poutput() instead of print() in arg_print.py example | Todd Leonhardt | 2018-03-07 | 1 | -4/+4 |
| | |||||
* | Added ppaged() method for printing output via a pager | Todd Leonhardt | 2018-03-07 | 1 | -0/+29 |
| | | | | | | Also: - Added paged_output.py example - Modified cmd2 so it keeps track of when output is being redirected so it doesn't attempt to usage a pager in this case | ||||
* | Removed support for case-insensitive command parsing | Todd Leonhardt | 2018-03-02 | 1 | -25/+0 |
| | |||||
* | Removed abbrev attribute | Kevin Van Brunt | 2018-03-02 | 3 | -3/+0 |
| | |||||
* | Fixed some parsing bugs and added more unit tests | Kevin Van Brunt | 2018-03-02 | 1 | -1/+7 |
| |