// NewCreateCmd builds a "svcat create class" command
NewCreateCmd builds a "svcat create class" command
// NewCreateCmd builds a " svcat create class " command
func NewCreateCmd(cxt *command.Context) *cobra.Command {
	createCmd := &CreateCmd{Context: cxt}
	cmd := &cobra.Command{
		Use:   "class [NAME] --from [EXISTING_NAME]",
		Short: "Copies an existing class into a new user-defined cluster-scoped class",
		Example: command.NormalizeExamples(`
  svcat create class newclass --from mysqldb
`),
		PreRunE: command.PreRunE(createCmd),
		RunE:    command.RunE(createCmd),
	}
	cmd.Flags().StringVarP(&createCmd.From, "from", "f", "",
		"Name from an existing class that will be copied (Required)",
	)
	cmd.MarkFlagRequired("from")
	return cmd
}
func NewCreateCmd ( cxt * command . Context ) * cobra . Command { createCmd := & CreateCmd { Context : cxt } cmd := & cobra . Command { Use : " " , Short : " " , Example : command . NormalizeExamples ( `
  svcat create class newclass --from mysqldb
` ) , PreRunE : command . PreRunE ( createCmd ) , RunE : command . RunE ( createCmd ) , } cmd . Flags ( ) . StringVarP ( & createCmd . From , " " , " " , " " , " " , ) cmd . MarkFlagRequired ( " " ) return cmd }
NewCreateCmd builds a "svcat create class" command
NewCreateCmd builds a " svcat create class " command