// NewDeleteCommand deletes a specified namespace
NewDeleteCommand deletes a specified namespace
// NewDeleteCommand deletes a specified namespace
func NewDeleteCommand(f *factory.Factory) *cobra.Command {
	opts := &options{
		f: f,
	}
	cmd := &cobra.Command{
		Use:     "delete",
		Short:   f.Localizer.MustLocalize("connector.namespace.delete.cmd.shortDescription"),
		Long:    f.Localizer.MustLocalize("connector.namespace.delete.cmd.longDescription"),
		Example: f.Localizer.MustLocalize("connector.namespace.delete.cmd.example"),
		Args:    cobra.NoArgs,
		RunE: func(cmd *cobra.Command, args []string) error {
			return runDelete(opts)
		},
	}
	flags := connectorcmdutil.NewFlagSet(cmd, f)
	_ = flags.AddConnectorID(&opts.id).Required()
	return cmd
}
func NewDeleteCommand ( f * factory . Factory ) * cobra . Command { opts := & options { f : f , } cmd := & cobra . Command { Use : " " , Short : f . Localizer . MustLocalize ( " " ) , Long : f . Localizer . MustLocalize ( " " ) , Example : f . Localizer . MustLocalize ( " " ) , Args : cobra . NoArgs , RunE : func ( cmd * cobra . Command , args [ ] string ) error { return runDelete ( opts ) } , } flags := connectorcmdutil . NewFlagSet ( cmd , f ) _ = flags . AddConnectorID ( & opts . id ) . Required ( ) return cmd }
NewDeleteCommand deletes a specified namespace
NewDeleteCommand deletes a specified namespace