Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
be96014
Removed need for AutoCompleter's token_start_index member
kmvanbrunt Aug 12, 2019
4b4d723
Removed token_start_index from AutoCompleter's __init__ method
kmvanbrunt Aug 12, 2019
474af6f
Replaced AutoCompleter._positional_completers since an ArgumentParser…
kmvanbrunt Aug 12, 2019
6979766
Accounting for value of preserve_quotes when parsing for argparse tab…
kmvanbrunt Aug 13, 2019
71367fb
Added capability for an argparse-based command's completer/choice fun…
kmvanbrunt Aug 13, 2019
bafdcca
Fixed warning
kmvanbrunt Aug 13, 2019
6f5a20d
Combined 2 functions
kmvanbrunt Aug 13, 2019
3442053
Now adding flags with no arguments to consumed_arg_values. This way c…
kmvanbrunt Aug 13, 2019
125eba8
Renamed some variables
kmvanbrunt Aug 13, 2019
90cc598
Merge branch 'master' into completion_state
kmvanbrunt Aug 17, 2019
301fd2c
Minor grammar improvement in CHANGELOG
tleonhardt Aug 18, 2019
422f90a
Fixed comment
kmvanbrunt Aug 19, 2019
f1bf0ae
Added parser to parsed_args namespace
kmvanbrunt Aug 21, 2019
6af36b1
AutoCompleter now passes parsed_args to all choices and completer fun…
kmvanbrunt Aug 22, 2019
33adefc
AutoCompleter only passes parsed_args to choices/completer functions …
kmvanbrunt Aug 27, 2019
294d911
Updated comment
kmvanbrunt Aug 27, 2019
e58b95f
Merge branch 'master' into completion_state
kmvanbrunt Sep 7, 2019
d6643af
Change parsed_args to arg_tokens
kmvanbrunt Sep 13, 2019
8acd840
Merge branch 'completion_state' of github.com:python-cmd2/cmd2 into c…
kmvanbrunt Sep 13, 2019
cdc0efa
Updated documentation
kmvanbrunt Sep 13, 2019
eda4014
Added unit tests for arg_tokens
kmvanbrunt Sep 13, 2019
95174ff
Updated change log
kmvanbrunt Sep 13, 2019
ed56264
Increased code coverage
kmvanbrunt Sep 13, 2019
65ed685
Fixed issue where invalid subcommand token was ignored when tab compl…
kmvanbrunt Sep 13, 2019
9a7818b
Fixed issue where invalid subcommand token was ignored when retrievin…
kmvanbrunt Sep 13, 2019
e6585d1
Changed arg_tokens to a dictionary
kmvanbrunt Sep 16, 2019
89fa7fb
Merge branch 'master' into completion_state
kmvanbrunt Sep 16, 2019
68e7528
Updated arg_tokens unit tests
kmvanbrunt Sep 16, 2019
2e94459
Added unit test to override a parameter in a parent parser
kmvanbrunt Sep 16, 2019
c7bf16f
Fixed unit tests on Python versions older than 3.7
kmvanbrunt Sep 16, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* Enhancements
* No longer treating empty text scripts as an error condition
* Allow dynamically extending a `cmd2.Cmd` object instance with a `do_xxx` method at runtime
* Choices/Completer functions can now be passed a dictionary that maps command-line tokens to their
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the change to a dictionary instead of an argparse.Namespace

argparse argument. This is helpful when one argument determines what is tab completed for another argument.
If these functions have an argument called `arg_tokens`, then AutoCompleter will automatically pass this
dictionary to them.

## 0.9.16 (August 7, 2019)
* Bug Fixes
Expand Down
Loading