// NewCmdFetch makes a new fetch command.
NewCmdFetch makes a new fetch command.
// NewCmdFetch makes a new fetch command .
func NewCmdFetch(w io.Writer) *cobra.Command {
	infoCmd := cobra.Command{
		Use: "fetch",
		Short: `Fetches the OpenAPI specification from the current kubernetes cluster specified 
in the user's kubeconfig`,
		Example: `kustomize openapi fetch`,
		Run: func(cmd *cobra.Command, args []string) {
			printSchema(w)
		},
		Hidden: true,
	}
	return &infoCmd
}
func NewCmdFetch ( w io . Writer ) * cobra . Command { infoCmd := cobra . Command { Use : " " , Short : `Fetches the OpenAPI specification from the current kubernetes cluster specified 
in the user's kubeconfig` , Example : `kustomize openapi fetch` , Run : func ( cmd * cobra . Command , args [ ] string ) { printSchema ( w ) } , Hidden : true , } return & infoCmd }
NewCmdFetch makes a new fetch command.
NewCmdFetch makes a new fetch command .