-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.stale-issue
Description
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
The current bash autocompletion is hard to maintain and buggy. Cobra can create completion shell scripts. This was already tried in PR #4768 but dropped because the lack of autocompletion support for containers/pods/volumes/etc...
With the current cobra version 1.0.0 you can now add a custom function to do this for flags and args
cobra documentation:
main completion
flag completion
With this it would be possible to create autocompletion scripts for bash, zsh, fish, and powershell!
I would take the time to implement this if this is wanted?
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.stale-issue