Commit fa68de4f authored by feihujiang's avatar feihujiang

Correct kubectl delete's wrong synopsis

parent 6129d3d4
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.SH NAME .SH NAME
.PP .PP
kubectl delete \- Delete a resource by filename, stdin, resource and name, or by resources and label selector. kubectl delete \- Delete resources by filenames, stdin, resources and names, or by resources and label selector.
.SH SYNOPSIS .SH SYNOPSIS
...@@ -13,14 +13,13 @@ kubectl delete \- Delete a resource by filename, stdin, resource and name, or by ...@@ -13,14 +13,13 @@ kubectl delete \- Delete a resource by filename, stdin, resource and name, or by
.SH DESCRIPTION .SH DESCRIPTION
.PP .PP
Delete a resource by filename, stdin, resource and name, or by resources and label selector. Delete resources by filenames, stdin, resources and names, or by resources and label selector.
.PP .PP
JSON and YAML formats are accepted. JSON and YAML formats are accepted.
.PP .PP
If both a filename and command line arguments are passed, the command line Only one type of the arguments may be specified: filenames, resources and names, or resources and label selector
arguments are used and the filename is ignored.
.PP .PP
Note that the delete command does NOT do resource version checks, so if someone Note that the delete command does NOT do resource version checks, so if someone
......
...@@ -83,7 +83,7 @@ kubectl ...@@ -83,7 +83,7 @@ kubectl
* [kubectl cluster-info](kubectl_cluster-info.md) - Display cluster info * [kubectl cluster-info](kubectl_cluster-info.md) - Display cluster info
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files * [kubectl config](kubectl_config.md) - config modifies kubeconfig files
* [kubectl create](kubectl_create.md) - Create a resource by filename or stdin * [kubectl create](kubectl_create.md) - Create a resource by filename or stdin
* [kubectl delete](kubectl_delete.md) - Delete a resource by filename, stdin, resource and name, or by resources and label selector. * [kubectl delete](kubectl_delete.md) - Delete resources by filenames, stdin, resources and names, or by resources and label selector.
* [kubectl describe](kubectl_describe.md) - Show details of a specific resource or group of resources * [kubectl describe](kubectl_describe.md) - Show details of a specific resource or group of resources
* [kubectl exec](kubectl_exec.md) - Execute a command in a container. * [kubectl exec](kubectl_exec.md) - Execute a command in a container.
* [kubectl expose](kubectl_expose.md) - Take a replicated application and expose it as Kubernetes Service * [kubectl expose](kubectl_expose.md) - Take a replicated application and expose it as Kubernetes Service
...@@ -101,8 +101,7 @@ kubectl ...@@ -101,8 +101,7 @@ kubectl
* [kubectl stop](kubectl_stop.md) - Deprecated: Gracefully shut down a resource by name or filename. * [kubectl stop](kubectl_stop.md) - Deprecated: Gracefully shut down a resource by name or filename.
* [kubectl version](kubectl_version.md) - Print the client and server version information. * [kubectl version](kubectl_version.md) - Print the client and server version information.
###### Auto generated by spf13/cobra at 2015-07-30 03:45:17.319803488 +0000 UTC ###### Auto generated by spf13/cobra at 2015-08-03 05:57:27.777459508 +0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS --> <!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl.md?pixel)]() [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl.md?pixel)]()
......
...@@ -33,17 +33,16 @@ Documentation for other releases can be found at ...@@ -33,17 +33,16 @@ Documentation for other releases can be found at
## kubectl delete ## kubectl delete
Delete a resource by filename, stdin, resource and name, or by resources and label selector. Delete resources by filenames, stdin, resources and names, or by resources and label selector.
### Synopsis ### Synopsis
Delete a resource by filename, stdin, resource and name, or by resources and label selector. Delete resources by filenames, stdin, resources and names, or by resources and label selector.
JSON and YAML formats are accepted. JSON and YAML formats are accepted.
If both a filename and command line arguments are passed, the command line Only one type of the arguments may be specified: filenames, resources and names, or resources and label selector
arguments are used and the filename is ignored.
Note that the delete command does NOT do resource version checks, so if someone Note that the delete command does NOT do resource version checks, so if someone
submits an update to a resource right when you submit a delete, their update submits an update to a resource right when you submit a delete, their update
...@@ -119,7 +118,7 @@ $ kubectl delete pods --all ...@@ -119,7 +118,7 @@ $ kubectl delete pods --all
* [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-07-23 17:43:06.942148224 +0000 UTC ###### Auto generated by spf13/cobra at 2015-07-31 02:09:06.816515226 +0000 UTC
<!-- BEGIN MUNGE: GENERATED_ANALYTICS --> <!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
......
...@@ -33,12 +33,11 @@ import ( ...@@ -33,12 +33,11 @@ import (
) )
const ( const (
delete_long = `Delete a resource by filename, stdin, resource and name, or by resources and label selector. delete_long = `Delete resources by filenames, stdin, resources and names, or by resources and label selector.
JSON and YAML formats are accepted. JSON and YAML formats are accepted.
If both a filename and command line arguments are passed, the command line Only one type of the arguments may be specified: filenames, resources and names, or resources and label selector
arguments are used and the filename is ignored.
Note that the delete command does NOT do resource version checks, so if someone Note that the delete command does NOT do resource version checks, so if someone
submits an update to a resource right when you submit a delete, their update submits an update to a resource right when you submit a delete, their update
...@@ -63,7 +62,7 @@ func NewCmdDelete(f *cmdutil.Factory, out io.Writer) *cobra.Command { ...@@ -63,7 +62,7 @@ func NewCmdDelete(f *cmdutil.Factory, out io.Writer) *cobra.Command {
var filenames util.StringList var filenames util.StringList
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "delete ([-f FILENAME] | (RESOURCE [(NAME | -l label | --all)]", Use: "delete ([-f FILENAME] | (RESOURCE [(NAME | -l label | --all)]",
Short: "Delete a resource by filename, stdin, resource and name, or by resources and label selector.", Short: "Delete resources by filenames, stdin, resources and names, or by resources and label selector.",
Long: delete_long, Long: delete_long,
Example: delete_example, Example: delete_example,
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment