Long:"Print the supported API resources on the server",
Example:apiresources_example,
Run:func(cmd*cobra.Command,args[]string){
cmdutil.CheckErr(o.Complete(cmd))
cmdutil.CheckErr(o.Validate(cmd))
cmdutil.CheckErr(o.RunApiResources(cmd,f))
},
}
cmd.Flags().Bool("no-headers",false,"When using the default or custom-column output format, don't print headers (default print headers).")
cmd.Flags().StringP("output","o","","Output format. One of: wide|name.")
cmd.Flags().BoolVar(&o.NoHeaders,"no-headers",o.NoHeaders,"When using the default or custom-column output format, don't print headers (default print headers).")
cmd.Flags().StringVarP(&o.Output,"output","o",o.Output,"Output format. One of: wide|name.")
cmd.Flags().StringVar(&o.APIGroup,"api-group","","Limit to resources in the specified API group.")
cmd.Flags().BoolVar(&o.Namespaced,"namespaced",true,"Namespaced indicates if a resource is namespaced or not.")
cmd.Flags().StringVar(&o.APIGroup,"api-group",o.APIGroup,"Limit to resources in the specified API group.")
cmd.Flags().BoolVar(&o.Namespaced,"namespaced",o.Namespaced,"If false, non-namespaced resources will be returned, otherwise returning namespaced resources by default.")
cmd.Flags().StringSliceVar(&o.Verbs,"verbs",o.Verbs,"Limit to resources that support the specified verbs.")
cmd.Flags().BoolVar(&o.Cached,"cached",o.Cached,"Use the cached list of resources if available.")