Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP PoC dynamic shell completion for 'kubectl-argo-rollouts get rollo…
…ut [TAB]' works toward #2015 use ValidArgsFunction from cobra to list candidates for completion: https://github.com/spf13/cobra/blob/main/shell_completions.md#dynamic-completion-of-nouns - filtering on 'toComplete' doesn't seem necessary, at least on bash (most probably bash-completion handles that itself), not sure for the others; I could not find cobra documentation about that use v2 of GenBashCompletion from cobra: https://github.com/spf13/cobra/blob/main/shell_completions.md#bash-completion-v2 - I chose to disable descriptions for completion (as a bash user I'm not used to that), but it's enabled for fish it seems, we can enable it if desired, I have no strong opinion on it
- Loading branch information