func NewCmdAlpha(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
	cmd := &cobra.Command{
		Use:   "alpha",
		Short: i18n.T("Commands for features in alpha"),
		Long:  templates.LongDesc(i18n.T("These commands correspond to alpha features that are not enabled in Kubernetes clusters by default.")),
	}

	// Alpha commands should be added here. As features graduate from alpha they should move
	// from here to the CommandGroups defined by NewKubeletCommand() in cmd.go.
	cmd.AddCommand(debug.NewCmdDebug(f, streams))

	// NewKubeletCommand() will hide the alpha command if it has no subcommands. Overriding
	// the help function ensures a reasonable message if someone types the hidden command anyway.
	if !cmd.HasSubCommands() {
		cmd.SetHelpFunc(func(*cobra.Command, []string) {
			cmd.Println(i18n.T("No alpha commands are available in this version of kubectl"))
		})
	}

	return cmd
}
// NewCmdAlpha creates a command that acts as an alternate root command for features in alpha
NewCmdAlpha creates a command that acts as an alternate root command for features in alpha
// NewCmdAlpha creates a command that acts as an alternate root command for features in alpha
func NewCmdAlpha(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command {
	cmd := &cobra.Command{
		Use:   "alpha",
		Short: i18n.T("Commands for features in alpha"),
		Long:  templates.LongDesc(i18n.T("These commands correspond to alpha features that are not enabled in Kubernetes clusters by default.")),
	}
	cmd.AddCommand(debug.NewCmdDebug(f, streams))
	if !cmd.HasSubCommands() {
		cmd.SetHelpFunc(func(*cobra.Command, []string) {
			cmd.Println(i18n.T("No alpha commands are available in this version of kubectl"))
		})
	}
	return cmd
}
func NewCmdAlpha ( f cmdutil . Factory , streams genericclioptions . IOStreams ) * cobra . Command { cmd := & cobra . Command { Use : " " , Short : i18n . T ( " " ) , Long : templates . LongDesc ( i18n . T ( " " ) ) , } cmd . AddCommand ( debug . NewCmdDebug ( f , streams ) ) if ! cmd . HasSubCommands ( ) { cmd . SetHelpFunc ( func ( * cobra . Command , [ ] string ) { cmd . Println ( i18n . T ( " " ) ) } ) } return cmd }
NewCmdAlpha creates a command that acts as an alternate root command for features in alpha
NewCmdAlpha creates a command that acts as an alternate root command for features in alpha
// Alpha commands should be added here. As features graduate from alpha they should move // from here to the CommandGroups defined by NewKubeletCommand() in cmd.go. // NewKubeletCommand() will hide the alpha command if it has no subcommands. Overriding // the help function ensures a reasonable message if someone types the hidden command anyway.