Commit fe502f5
committed
Fix kubectl --context and --cluster completions for persistent flags
Wire up the 'context' and 'cluster' generators to the persistent --context
and --cluster options on the root kubectl command. Previously these options
had no generatorName, so completions like 'kubectl get --context <Tab>'
would not suggest context names.
Also fix a typo in the CLUSTER_GENERATOR: 'config get_clusters' (underscore)
should be 'config get-clusters' (hyphen), matching the actual kubectl
subcommand.
Fixes: APP-3477
Refs: warpdotdev/warp#5186
Co-Authored-By: Oz <oz-agent@warp.dev>1 parent 8fafc3f commit fe502f5
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7039 | 7039 | | |
7040 | 7040 | | |
7041 | 7041 | | |
7042 | | - | |
| 7042 | + | |
| 7043 | + | |
| 7044 | + | |
7043 | 7045 | | |
7044 | 7046 | | |
7045 | 7047 | | |
7046 | 7048 | | |
7047 | 7049 | | |
7048 | 7050 | | |
7049 | 7051 | | |
7050 | | - | |
| 7052 | + | |
| 7053 | + | |
| 7054 | + | |
7051 | 7055 | | |
7052 | 7056 | | |
7053 | 7057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments