Use TYPE instead of RESOURCE in help string

For commands in kubectl, use TYPE in help string.
This commit is contained in:
hurf
2015-07-06 19:31:27 +08:00
parent 159ba48932
commit 33fb6170f9
21 changed files with 39 additions and 45 deletions

View File

@@ -32,7 +32,7 @@ import (
const (
get_long = `Display one or many resources.
Possible resources include (case insensitive): pods (po), services (svc),
Possible resource types include (case insensitive): pods (po), services (svc),
replicationcontrollers (rc), nodes (no), events (ev), componentstatuses (cs),
limitranges (limits), persistentvolumes (pv), persistentvolumeclaims (pvc),
resourcequotas (quota), namespaces (ns), endpoints (ep) or secrets.
@@ -68,7 +68,7 @@ func NewCmdGet(f *cmdutil.Factory, out io.Writer) *cobra.Command {
validArgs := p.HandledResources()
cmd := &cobra.Command{
Use: "get [(-o|--output=)json|yaml|template|wide|...] (RESOURCE [NAME] | RESOURCE/NAME ...)",
Use: "get [(-o|--output=)json|yaml|template|wide|...] (TYPE [(NAME | -l label] | TYPE/NAME ...)",
Short: "Display one or many resources",
Long: get_long,
Example: get_example,