func NewCmdExportIntoChart(f *cmdutil.Factory, out io.Writer) *cobra.Command {
	//func NewCmdGet(f *cmdutil.Factory, out io.Writer) *cobra.Command {
	//	options := &GetOptions{}
	options := &ExportIntoChartOptions{}

	// retrieve a list of handled resources from printer as valid args
	validArgs, argAliases := []string{}, []string{}
	p, err := f.Printer(nil, nil)
	cmdutil.CheckErr(err)
	if p != nil {
		validArgs = p.HandledResources()
		argAliases = kubectl.ResourceAliases(validArgs)
	}

	cmd := &cobra.Command{
		//Use:     "get [(-o|--output=)json|yaml|wide|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=...] (TYPE [NAME | -l label] | TYPE/NAME ...) [flags]",
		Use:     "export-into-chart [(-o|--output=)json|yaml|wide|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=...] (TYPE [NAME | -l label] | TYPE/NAME ...) [flags]",
		Short:   "Display one or many resources",
		Long:    get_long,
		Example: get_example,
		Run: func(cmd *cobra.Command, args []string) {
			//err := RunGet(f, out, cmd, args, options)
			err := RunExportIntoChart(f, out, cmd, args, options)
			cmdutil.CheckErr(err)
		},
		SuggestFor: []string{"list", "ps"},
		ValidArgs:  validArgs,
		ArgAliases: argAliases,
	}
	cmdutil.AddPrinterFlags(cmd)
	cmd.Flags().StringP("selector", "l", "", "Selector (label query) to filter on")
	cmd.Flags().BoolP("watch", "w", false, "After listing/getting the requested object, watch for changes.")
	cmd.Flags().Bool("watch-only", false, "Watch for changes to the requested object(s), without listing/getting first.")
	cmd.Flags().Bool("all-namespaces", false, "If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
	cmd.Flags().Bool("show-kind", false, "If present, list the kind of each requested resource.")
	cmd.Flags().StringSliceP("label-columns", "L", []string{}, "Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag statements like -L label1 -L label2...")
	cmd.Flags().Bool("export", false, "If true, use 'export' for the resources.  Exported resources are stripped of cluster-specific information.")
	usage := "Filename, directory, or URL to a file identifying the resource to get from a server."
	kubectl.AddJsonFilenameFlag(cmd, &options.Filenames, usage)
	cmdutil.AddRecursiveFlag(cmd, &options.Recursive)
	cmdutil.AddInclude3rdPartyFlags(cmd)
	cmd.Flags().StringVar(&options.Raw, "raw", options.Raw, "Raw URI to request from the server.  Uses the transport specified by the kubeconfig file.")
	return cmd
}
// NewCmdGet creates a command object for the generic "get" action, which
// retrieves one or more resources from a server.
NewCmdGet creates a command object for the generic "get" action, which
retrieves one or more resources from a server.
// NewCmdGet creates a command object for the generic " get " action which // retrieves one or more resources from a server .
func NewCmdExportIntoChart(f *cmdutil.Factory, out io.Writer) *cobra.Command {
	options := &ExportIntoChartOptions{}
	validArgs, argAliases := []string{}, []string{}
	p, err := f.Printer(nil, nil)
	cmdutil.CheckErr(err)
	if p != nil {
		validArgs = p.HandledResources()
		argAliases = kubectl.ResourceAliases(validArgs)
	}
	cmd := &cobra.Command{
		Use:     "export-into-chart [(-o|--output=)json|yaml|wide|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=...] (TYPE [NAME | -l label] | TYPE/NAME ...) [flags]",
		Short:   "Display one or many resources",
		Long:    get_long,
		Example: get_example,
		Run: func(cmd *cobra.Command, args []string) {
			err := RunExportIntoChart(f, out, cmd, args, options)
			cmdutil.CheckErr(err)
		},
		SuggestFor: []string{"list", "ps"},
		ValidArgs:  validArgs,
		ArgAliases: argAliases,
	}
	cmdutil.AddPrinterFlags(cmd)
	cmd.Flags().StringP("selector", "l", "", "Selector (label query) to filter on")
	cmd.Flags().BoolP("watch", "w", false, "After listing/getting the requested object, watch for changes.")
	cmd.Flags().Bool("watch-only", false, "Watch for changes to the requested object(s), without listing/getting first.")
	cmd.Flags().Bool("all-namespaces", false, "If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.")
	cmd.Flags().Bool("show-kind", false, "If present, list the kind of each requested resource.")
	cmd.Flags().StringSliceP("label-columns", "L", []string{}, "Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag statements like -L label1 -L label2...")
	cmd.Flags().Bool("export", false, "If true, use 'export' for the resources.  Exported resources are stripped of cluster-specific information.")
	usage := "Filename, directory, or URL to a file identifying the resource to get from a server."
	kubectl.AddJsonFilenameFlag(cmd, &options.Filenames, usage)
	cmdutil.AddRecursiveFlag(cmd, &options.Recursive)
	cmdutil.AddInclude3rdPartyFlags(cmd)
	cmd.Flags().StringVar(&options.Raw, "raw", options.Raw, "Raw URI to request from the server.  Uses the transport specified by the kubeconfig file.")
	return cmd
}
func NewCmdExportIntoChart ( f * cmdutil . Factory , out io . Writer ) * cobra . Command { options := & ExportIntoChartOptions { } validArgs , argAliases := [ ] string { } , [ ] string { } p , err := f . Printer ( nil , nil ) cmdutil . CheckErr ( err ) if p != nil { validArgs = p . HandledResources ( ) argAliases = kubectl . ResourceAliases ( validArgs ) } cmd := & cobra . Command { Use : " " , Short : " " , Long : get_long , Example : get_example , Run : func ( cmd * cobra . Command , args [ ] string ) { err := RunExportIntoChart ( f , out , cmd , args , options ) cmdutil . CheckErr ( err ) } , SuggestFor : [ ] string { " " , " " } , ValidArgs : validArgs , ArgAliases : argAliases , } cmdutil . AddPrinterFlags ( cmd ) cmd . Flags ( ) . StringP ( " " , " " , " " , " " ) cmd . Flags ( ) . BoolP ( " " , " " , false , " " ) cmd . Flags ( ) . Bool ( " " , false , " " ) cmd . Flags ( ) . Bool ( " " , false , " " ) cmd . Flags ( ) . Bool ( " " , false , " " ) cmd . Flags ( ) . StringSliceP ( " " , " " , [ ] string { } , " " ) cmd . Flags ( ) . Bool ( " " , false , " " ) usage := " " kubectl . AddJsonFilenameFlag ( cmd , & options . Filenames , usage ) cmdutil . AddRecursiveFlag ( cmd , & options . Recursive ) cmdutil . AddInclude3rdPartyFlags ( cmd ) cmd . Flags ( ) . StringVar ( & options . Raw , " " , options . Raw , " " ) return cmd }
NewCmdGet creates a command object for the generic "get" action, which
retrieves one or more resources from a server.
NewCmdGet creates a command object for the generic " get " action which retrieves one or more resources from a server .
//func NewCmdGet(f *cmdutil.Factory, out io.Writer) *cobra.Command { //	options := &GetOptions{} // retrieve a list of handled resources from printer as valid args //Use:     "get [(-o|--output=)json|yaml|wide|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=...] (TYPE [NAME | -l label] | TYPE/NAME ...) [flags]", //err := RunGet(f, out, cmd, args, options)