| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | Fixed bug where -- wasn't stopping a REMAINDER flag and did a lot of refactoring | Kevin Van Brunt | 2019-07-10 | 1 | -112/+105 | |
| | | ||||||
| * | Small refactoring to simplify code | Kevin Van Brunt | 2019-07-10 | 1 | -133/+131 | |
| | | ||||||
| * | Fixed issue where names of remainder flags were not completing | Kevin Van Brunt | 2019-07-10 | 1 | -10/+10 | |
| | | ||||||
| * | Resetting consumed arguments list each time a flag is used | Kevin Van Brunt | 2019-07-08 | 1 | -32/+40 | |
| | | | | | Started adding AutoCompleter unit tests for nargs. | |||||
| * | Added code to handle flags with action set to append, append_const, and ↵ | Kevin Van Brunt | 2019-07-08 | 1 | -1/+7 | |
| | | | | | count in AutoCompleter | |||||
| * | Fixed issue where -- was not handled properly in AutoCompleter when the ↵ | Kevin Van Brunt | 2019-07-08 | 1 | -9/+9 | |
| | | | | | parser's prefix characters did not include - | |||||
| * | Moved all custom argparse classes intended for normal development to ↵ | Kevin Van Brunt | 2019-07-07 | 1 | -52/+3 | |
| | | | | | | | | argparse_custom.py. Lazy loading AutoCompleter in cmd2 instance methods to allow argparse_completer.py to import cmd2.Cmd class. This Architecture makes more sense because AutoCompleter depends on cmd2.Cmd. | |||||
| * | Hiding flags that have help value of SUPRESSED in tab completion results | Kevin Van Brunt | 2019-07-07 | 1 | -22/+25 | |
| | | | | | Added more unit tests for argparse completer | |||||
| * | Removed AutoCompleter that globally disables tab hints | Kevin Van Brunt | 2019-07-06 | 1 | -11/+5 | |
| | | ||||||
| * | Fixed issue where default descriptive header wasn't set correctly | Kevin Van Brunt | 2019-07-06 | 1 | -4/+6 | |
| | | ||||||
| * | More unit tests | Kevin Van Brunt | 2019-07-06 | 1 | -2/+2 | |
| | | ||||||
| * | Added ability to limit how many CompletionItems display at a time | Kevin Van Brunt | 2019-07-06 | 1 | -1/+3 | |
| | | ||||||
| * | Refactoring and more unit tests | Kevin Van Brunt | 2019-07-05 | 1 | -15/+15 | |
| | | ||||||
| * | Added documentation | Kevin Van Brunt | 2019-07-05 | 1 | -4/+18 | |
| | | ||||||
| * | Fixed some warnings | Kevin Van Brunt | 2019-07-05 | 1 | -10/+12 | |
| | | ||||||
| * | Removed AutoCompleter parameters that are obsolete | Kevin Van Brunt | 2019-07-05 | 1 | -35/+19 | |
| | | ||||||
| * | Using argparse constants instead of hardcoded strings | Kevin Van Brunt | 2019-07-04 | 1 | -3/+3 | |
| | | ||||||
| * | No longer restricting nargs range support to Cmd2ArgParser | Kevin Van Brunt | 2019-07-04 | 1 | -114/+14 | |
| | | ||||||
| * | Fixed spelling | Kevin Van Brunt | 2019-07-03 | 1 | -1/+1 | |
| | | ||||||
| * | Moved cmd2 custom argparse types to argparse_custom.py | Kevin Van Brunt | 2019-07-03 | 1 | -692/+26 | |
| | | | | | Rename ACArgumentParser to Cmd2ArgParser | |||||
| * | Fixed some bugs in _resolve_choices_for_arg | Kevin Van Brunt | 2019-07-03 | 1 | -10/+22 | |
| | | ||||||
| * | Updated comments | Kevin Van Brunt | 2019-07-03 | 1 | -8/+8 | |
| | | ||||||
| * | Patched argparse._ActionsContainer.add_argument() to support more settings ↵ | Kevin Van Brunt | 2019-07-02 | 1 | -57/+61 | |
| | | | | | like enabling tab completion and providing choice generating functions | |||||
| * | Added functions to enable tab completion and choices provider functions to ↵ | Kevin Van Brunt | 2019-07-02 | 1 | -74/+121 | |
| | | | | | argparse argument values | |||||
| * | Moved basic_complete to utils | Kevin Van Brunt | 2019-07-02 | 1 | -5/+7 | |
| | | ||||||
| * | Small refactor and documentation updates | Kevin Van Brunt | 2019-07-01 | 1 | -15/+34 | |
| | | ||||||
| * | Moved cmd2.Cmd._decolorized_write() to ansi.py and renamed it to ↵ | Kevin Van Brunt | 2019-06-27 | 1 | -1/+8 | |
| | | | | | ansi_aware_write(). | |||||
| * | Changed default styles to use a more flexible approach which could be used ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -2/+2 | |
| | | | | | to call any function to add style | |||||
| * | Added TextStyle class and default implementations for various message types ↵ | Kevin Van Brunt | 2019-06-26 | 1 | -4/+3 | |
| | | | | | like Warning, Error, and Succes | |||||
| * | Moved code related to ANSI escape codes to new file called ansi.py | Kevin Van Brunt | 2019-06-26 | 1 | -1/+1 | |
| | | ||||||
| * | Reverted making constant values for colors. This will be done on a future ↵ | Kevin Van Brunt | 2019-06-13 | 1 | -2/+2 | |
| | | | | | ticket. | |||||
| * | Made constants for color values | Kevin Van Brunt | 2019-06-12 | 1 | -2/+2 | |
| | | ||||||
| * | Removed copyright headers from source files and updated LICENSE with current ↵ | Kevin Van Brunt | 2019-06-07 | 1 | -3/+0 | |
| | | | | | year | |||||
| * | Restored newlines to ACArgumentParser help and error text | Kevin Van Brunt | 2019-05-09 | 1 | -4/+2 | |
| | | ||||||
| * | Removed more suppression of exceptions in argparse completer to help with ↵ | Kevin Van Brunt | 2019-05-07 | 1 | -21/+6 | |
| | | | | | debugging tab-completion functions | |||||
| * | Removed try/except in argparse completion code since we don't want to ↵ | Kevin Van Brunt | 2019-05-06 | 1 | -13/+10 | |
| | | | | | suppress exceptions | |||||
| * | ACArgumentParser no longer prints complete help text when a parsing error occurs | Kevin Van Brunt | 2019-05-06 | 1 | -8/+5 | |
| | | ||||||
| * | Fixed a lot of warnings | Kevin Van Brunt | 2019-03-01 | 1 | -1/+1 | |
| | | ||||||
| * | Updated the examples to illustrate sorting CompletionItems | Kevin Van Brunt | 2019-02-27 | 1 | -4/+4 | |
| | | ||||||
| * | Added matches_sort_key member to cmd2 | Kevin Van Brunt | 2019-02-27 | 1 | -9/+14 | |
| | | ||||||
| * | Made cmd2_app a positional and required argument of AutoCompleter. | Kevin Van Brunt | 2019-02-23 | 1 | -36/+18 | |
| | | | | | | Deleted bash tab completion support. AutoCompleter no longer assumes CompletionItem results are sorted. | |||||
| * | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 1 | -2/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | 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 | |||||
| * | Fixed issue where flag at beginning of REMAINDER section was tab completing | Kevin Van Brunt | 2018-10-10 | 1 | -10/+8 | |
| | | ||||||
| * | Added code to handle -- in argparse completer | Kevin Van Brunt | 2018-10-10 | 1 | -19/+40 | |
| | | ||||||
| * | Added tests for token_resembles_flag | Kevin Van Brunt | 2018-10-09 | 1 | -1/+2 | |
| | | ||||||
| * | Added ability for argcompleter to determine difference between flag and ↵ | Kevin Van Brunt | 2018-10-09 | 1 | -9/+30 | |
| | | | | | negative number | |||||
| * | Fixed unit test failures and addressed code review comments | Todd Leonhardt | 2018-10-06 | 1 | -16/+16 | |
| | | ||||||
| * | Merge remote-tracking branch 'origin/master' into argparse_remainder | Eric Lin | 2018-10-06 | 1 | -0/+7 | |
| |\ | ||||||
| | * | Using sub-command instead of subcommand where possible to be consistent with ↵ | Kevin Van Brunt | 2018-10-05 | 1 | -0/+7 | |
| | | | | | | | | | argparse | |||||
| * | | Fixed a few edge cases: | Eric Lin | 2018-10-06 | 1 | -6/+17 | |
| | | | | | | | | | | | | | | | | | | | - Once the argument list can match a positional and that positional is tagged with nargs=argparse.REMAINDER it will consume all tokens including flag tokens. AutoCompleter now correctly detects this case will no longer attempt to complete flag tokens - A single-character token that is a flag prefix doesn't count as a flag and is parsed as a value. AutoCompleter now correctly detects this case. | |||||
