summaryrefslogtreecommitdiff
path: root/examples/argparse_completion.py
Commit message (Collapse)AuthorAgeFilesLines
* Updated tab completion exampleKevin Van Brunt2021-03-021-3/+4
|
* Fixed black, isort, flake8, and doc8 issuesTodd Leonhardt2021-02-191-19/+21
|
* Merge branch 'master' into blackTodd Leonhardt2021-02-191-70/+46
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # cmd2/__init__.py # cmd2/argparse_completer.py # cmd2/argparse_custom.py # cmd2/cmd2.py # cmd2/decorators.py # cmd2/exceptions.py # cmd2/utils.py # examples/arg_decorators.py # examples/argparse_completion.py # examples/modular_commands_main.py # tests/test_argparse_completer.py # tests/test_argparse_custom.py # tests/test_cmd2.py # tests/test_completion.py # tests/test_history.py
| * Merge branch 'master' into 2.0Kevin Van Brunt2021-01-221-3/+12
| |\
| * | Replaced choices_function / choices_method with choices_provider.Kevin Van Brunt2020-08-131-59/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced completer_function / completer_method with completer. ArgparseCompleter now always passes cmd2.Cmd or CommandSet instance as the self argument to choices_provider and completer functions. Moved basic_complete from utils into cmd2.Cmd class. Moved CompletionError to exceptions.py
* | | Add black for automatic code formatTodd Leonhardt2021-01-311-25/+31
| |/ |/|
* | Changed isort to force wrapping of imports to reduce merge conflicts from ↵Eric Lin2021-01-221-4/+15
|/ | | | minor import changes.
* Added info on semantic versioning and branching strategy to CONTRIBUTING.mdTodd Leonhardt2020-04-241-2/+2
| | | | | | | 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
* Made CompletionError exception available to non-argparse tab completionKevin Van Brunt2020-02-171-2/+2
|
* Finished argparse completion exampleKevin Van Brunt2020-02-131-21/+49
|
* Wrote examples for CompletionError and CompletionItemKevin Van Brunt2020-02-131-13/+34
|
* Start of new argparse completion exampleKevin Van Brunt2020-02-131-0/+73