k3s/pkg/kubectl/cmd/get
Cao Shufeng 995c5a07ea fix kubectl -o
Fix kubectl -o error message:
Before this change:
```shell
kubectl get pods -o foo
error: unable to match a printer suitable for the output format "" and the options specified: &get.PrintFlags{JSONYamlPrintFlags:(*genericclioptions.JSONYamlPrintFlags)(0x23aa610), NamePrintFlags:(*genericclioptions.NamePrintFlags)(0xc42058b4e0), TemplateFlags:(*printers.KubeTemplatePrintFlags)(0xc4206765e0), CustomColumnsFlags:(*printers.CustomColumnsPrintFlags)(0xc420676620), HumanReadableFlags:(*get.HumanPrintFlags)(0xc4204eb180), NoHeaders:(*bool)(0xc4206fefbc), OutputFormat:(*string)(0xc42058b4d0)}
```

After this change:
```shell
Kubectl get pods -o foo
error: unable to match a printer suitable for the output format "aaa", allowed formats are: custom-columns,custom-columns-file,go-template,go-template-file,json,jsonpath,jsonpath-file,name,template,templatefile,wide,yaml
```
2018-06-05 19:49:07 +08:00
..
BUILD move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
get.go Merge pull request #63885 from soltysh/get_unmarshal 2018-05-29 00:28:14 -07:00
get_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
get_test.go remove unnecessary factory delegation for RESTClientGetter method 2018-05-28 15:12:41 +02:00
humanreadable_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
humanreadable_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00