--merge=true: merge together the full hierarchy of kubeconfig files
--merge=true: merge together the full hierarchy of kubeconfig files
--minify=false: remove all information not used by current-context from the output
--minify=false: remove all information not used by current-context from the output
--no-headers=false: When using the default output, don't print headers.
--no-headers=false: When using the default output, don't print headers.
-o, --output="": Output format. One of: json|yaml|template|templatefile.
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide.
--output-version="": Output the formatted object with the given version (default api-version).
--output-version="": Output the formatted object with the given version (default api-version).
--raw=false: display raw byte data
--raw=false: display raw byte data
-t, --template="": Template string or path to template file to use when -o=template or -o=templatefile. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]
-t, --template="": Template string or path to template file to use when -o=template or -o=templatefile. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]
-l, --labels="": Labels to apply to the service created by this call.
-l, --labels="": Labels to apply to the service created by this call.
--name="": The name for the newly created object.
--name="": The name for the newly created object.
--no-headers=false: When using the default output, don't print headers.
--no-headers=false: When using the default output, don't print headers.
-o, --output="": Output format. One of: json|yaml|template|templatefile.
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide.
--output-version="": Output the formatted object with the given version (default api-version).
--output-version="": Output the formatted object with the given version (default api-version).
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
--port=-1: The port that the service should serve on. Required.
--port=-1: The port that the service should serve on. Required.
// List all replication controllers and services together in ps output format.
// List all replication controllers and services together in ps output format.
$ kubectl get rc,services
$ kubectl get rc,services
// List one or more resources by their type and names
// List one or more resources by their type and names.
$ kubectl get rc/web service/frontend pods/web-pod-13je7
$ kubectl get rc/web service/frontend pods/web-pod-13je7
```
```
...
@@ -48,7 +51,7 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
...
@@ -48,7 +51,7 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
-h, --help=false: help for get
-h, --help=false: help for get
-L, --label-columns=[]: 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...
-L, --label-columns=[]: 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...
--no-headers=false: When using the default output, don't print headers.
--no-headers=false: When using the default output, don't print headers.
-o, --output="": Output format. One of: json|yaml|template|templatefile.
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide.
--output-version="": Output the formatted object with the given version (default api-version).
--output-version="": Output the formatted object with the given version (default api-version).
-l, --selector="": Selector (label query) to filter on
-l, --selector="": Selector (label query) to filter on
-t, --template="": Template string or path to template file to use when -o=template or -o=templatefile. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]
-t, --template="": Template string or path to template file to use when -o=template or -o=templatefile. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]
...
@@ -88,6 +91,6 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
...
@@ -88,6 +91,6 @@ $ kubectl get rc/web service/frontend pods/web-pod-13je7
### SEE ALSO
### SEE ALSO
*[kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
*[kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-06-21 22:41:03.746552518 +0000 UTC
###### Auto generated by spf13/cobra at 2015-06-30 18:05:17.889608636 +0000 UTC
--all=false: select all resources in the namespace of the specified resource types
--all=false: select all resources in the namespace of the specified resource types
-h, --help=false: help for label
-h, --help=false: help for label
--no-headers=false: When using the default output, don't print headers.
--no-headers=false: When using the default output, don't print headers.
-o, --output="": Output format. One of: json|yaml|template|templatefile.
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide.
--output-version="": Output the formatted object with the given version (default api-version).
--output-version="": Output the formatted object with the given version (default api-version).
--overwrite=false: If true, allow labels to be overwritten, otherwise reject label updates that overwrite existing labels.
--overwrite=false: If true, allow labels to be overwritten, otherwise reject label updates that overwrite existing labels.
--resource-version="": If non-empty, the labels update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.
--resource-version="": If non-empty, the labels update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.
...
@@ -81,6 +81,6 @@ $ kubectl label pods foo bar-
...
@@ -81,6 +81,6 @@ $ kubectl label pods foo bar-
### SEE ALSO
### SEE ALSO
*[kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
*[kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
###### Auto generated by spf13/cobra at 2015-05-28 08:44:48.996047458 +0000 UTC
###### Auto generated by spf13/cobra at 2015-06-30 16:51:25.609525621 +0000 UTC
--image="": Image to use for upgrading the replication controller. Can not be used with --filename/-f
--image="": Image to use for upgrading the replication controller. Can not be used with --filename/-f
--no-headers=false: When using the default output, don't print headers.
--no-headers=false: When using the default output, don't print headers.
-o, --output="": Output format. One of: json|yaml|template|templatefile.
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide.
--output-version="": Output the formatted object with the given version (default api-version).
--output-version="": Output the formatted object with the given version (default api-version).
--poll-interval="3s": Time delay between polling for replication controller status after the update. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
--poll-interval="3s": Time delay between polling for replication controller status after the update. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
--rollback=false: If true, this is a request to abort an existing rollout that is partially rolled out. It effectively reverses current and next and runs a rollout
--rollback=false: If true, this is a request to abort an existing rollout that is partially rolled out. It effectively reverses current and next and runs a rollout
--no-headers=false: When using the default output, don't print headers.
--no-headers=false: When using the default output, don't print headers.
-o, --output="": Output format. One of: json|yaml|template|templatefile.
-o, --output="": Output format. One of: json|yaml|template|templatefile|wide.
--output-version="": Output the formatted object with the given version (default api-version).
--output-version="": Output the formatted object with the given version (default api-version).
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
// AddPrinterFlags adds printing related flags to a command (e.g. output format, no headers, template path)
// AddPrinterFlags adds printing related flags to a command (e.g. output format, no headers, template path)
funcAddPrinterFlags(cmd*cobra.Command){
funcAddPrinterFlags(cmd*cobra.Command){
cmd.Flags().StringP("output","o","","Output format. One of: json|yaml|template|templatefile.")
cmd.Flags().StringP("output","o","","Output format. One of: json|yaml|template|templatefile|wide.")
cmd.Flags().String("output-version","","Output the formatted object with the given version (default api-version).")
cmd.Flags().String("output-version","","Output the formatted object with the given version (default api-version).")
cmd.Flags().Bool("no-headers",false,"When using the default output, don't print headers.")
cmd.Flags().Bool("no-headers",false,"When using the default output, don't print headers.")
cmd.Flags().StringP("template","t","","Template string or path to template file to use when -o=template or -o=templatefile. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]")
cmd.Flags().StringP("template","t","","Template string or path to template file to use when -o=template or -o=templatefile. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview]")