Skip to content

Commit

Permalink
Replace shell completion request string literal with cobra constant
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Krieger <ben.krieger@intel.com>
  • Loading branch information
ben-krieger committed Feb 14, 2023
1 parent 8903037 commit f580d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/kubectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ host. Please be aware that when using --ssh all paths will apply to the remote m
os.Exit(1)
}

if len(args) > 1 && args[0] != "--help" && args[0] != "__complete" {
if len(args) > 1 && args[0] != "--help" && args[0] != cobra.ShellCompRequestCmd {
cluster := []string{"--cluster", cname}
args = append(cluster, args...)
}
Expand Down

0 comments on commit f580d35

Please sign in to comment.