const defaultBoilerPlate … var completionLong … var completionExample … var completionShells … // GetSupportedShells returns a list of supported shells func GetSupportedShells() []string { … } // newCmdCompletion returns the "kubeadm completion" command func newCmdCompletion(out io.Writer, boilerPlate string) *cobra.Command { … } // RunCompletion checks given arguments and executes command func RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args []string) error { … } func runCompletionBash(out io.Writer, kubeadm *cobra.Command) error { … } func runCompletionZsh(out io.Writer, kubeadm *cobra.Command) error { … }