Flag name completion should not be done after '--' delimiter even when DisableFlagParsing is enabled #1542
Labels
area/flags-args
Changes to functionality around command line flags and args
area/shell-completion
All shell completions
lifecycle/frozen
Prevents GitHub actions from labeling issues / PRs with stale and rotten
triage/needs-info
Needs more investigation from maintainers or more info from the issue provider
While working on completion for kubectl plugins I noticed that we don't handle the
--
delimiter properly whenDisableFlagParsing
is turned on. This is a special case that we may have overlooked in #1308.Let's take helm plugins as an example, as helm has a fully working solution for completion. We will use the fullstatus plugin.
I believe the problem is that the way we figure out if the
--
delimiter is being used does not work whenDisableFlagParsing
is enabled. I haven't dug deeper into it yet.To reproduce the problem with helm, you can do the following, after installing helm:
/cc @Luap99
The text was updated successfully, but these errors were encountered: