Merge pull request #30958 from lojies/addvalidresourceforexplain

Automatic merge from submit-queue

add valid resources when args is nil

add valid resources message is more friendly to user when running `kubectl explain`
and this also can be same with other cmd like get\describe.
This commit is contained in:
Kubernetes Submit Queue
2016-08-25 01:38:52 -07:00
committed by GitHub
2 changed files with 10 additions and 5 deletions

View File

@@ -245,7 +245,7 @@ Find more information at https://github.com/kubernetes/kubernetes.`,
Message: "Basic Commands (Intermediate):",
Commands: []*cobra.Command{
NewCmdGet(f, out, err),
NewCmdExplain(f, out),
NewCmdExplain(f, out, err),
NewCmdEdit(f, out, err),
NewCmdDelete(f, out),
},