kubeadm: print supported shell types in error message for 'kubeadm completion'
This commit is contained in:
		| @@ -122,7 +122,7 @@ func RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args [ | |||||||
| 	} | 	} | ||||||
| 	run, found := completionShells[args[0]] | 	run, found := completionShells[args[0]] | ||||||
| 	if !found { | 	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 { | 	if len(boilerPlate) == 0 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 SataQiu
					SataQiu