mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Merge pull request #137537 from Mujib-Ahasan/add-suggestfor
kubectl: improve command suggestions for describe and get
This commit is contained in:
commit
889a2bb795
2 changed files with 2 additions and 1 deletions
|
|
@ -157,6 +157,7 @@ func NewCmdDescribe(parent string, f cmdutil.Factory, streams genericiooptions.I
|
|||
cmdutil.CheckErr(o.Validate())
|
||||
cmdutil.CheckErr(o.Run())
|
||||
},
|
||||
SuggestFor: []string{"inspect"},
|
||||
}
|
||||
|
||||
flags.AddFlags(cmd)
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ func NewCmdGet(parent string, f cmdutil.Factory, streams genericiooptions.IOStre
|
|||
cmdutil.CheckErr(o.Validate())
|
||||
cmdutil.CheckErr(o.Run(f, args))
|
||||
},
|
||||
SuggestFor: []string{"list", "ps"},
|
||||
SuggestFor: []string{"list", "ls"},
|
||||
}
|
||||
|
||||
o.PrintFlags.AddFlags(cmd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue