mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
kubeadm: print supported shell types in error message for 'kubeadm completion'
This commit is contained in:
parent
b9e0714722
commit
41a508f538
@ -122,7 +122,7 @@ func RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args [
|
||||
}
|
||||
run, found := completionShells[args[0]]
|
||||
if !found {
|
||||
return errors.Errorf("unsupported shell type %q", args[0])
|
||||
return errors.Errorf("unsupported shell type %q, the supported shell types are %v", args[0], GetSupportedShells())
|
||||
}
|
||||
|
||||
if len(boilerPlate) == 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user