Skip to content

polycubed: fix list autocompletion#109

Merged
frisso merged 1 commit intomasterfrom
pr/fix_list_autocompletion
Apr 15, 2019
Merged

polycubed: fix list autocompletion#109
frisso merged 1 commit intomasterfrom
pr/fix_list_autocompletion

Conversation

@mauriciovasquezbernal
Copy link
Copy Markdown
Contributor

List autocompletion was partially broken because a look up with the wrong key
name was done.

This commit also adds some logic to avoid suggesting the "add", "del", "show"
commands when in the middle of a list completion. ex:

polycubectl cube_name complex_list key1 : suggest list of key2 for
elements that also matchs key1.

List autocompletion was partially broken because a look up with the wrong key
name was done.

This commit also adds some logic to avoid suggesting the "add", "del", "show"
commands when in the middle of a list completion. ex:

polycubectl cube_name complex_list key1 <tab>:  suggest list of key2 for
elements that also matchs key1.

Fixes: 95aa741 ("implement bash autocompletion")

Signed-off-by: Mauricio Vasquez B <mauriciovasquezbernal@gmail.com>
@frisso frisso merged commit 0b525e9 into master Apr 15, 2019
@frisso frisso deleted the pr/fix_list_autocompletion branch April 15, 2019 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants