k3s/pkg/printers
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
..
internalversion API updates for Cinder Volumes to support for user specified Secrets in the future 2018-06-02 22:16:50 -04:00
storage replace request.Context with context.Context 2018-04-24 08:59:00 -07:00
.import-restrictions Restrict imports for printers 2017-02-23 00:28:31 -05:00
BUILD move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
OWNERS Add pkg/printers OWNERS 2017-03-07 22:28:27 -05:00
customcolumn.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
customcolumn_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
customcolumn_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
customcolumn_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
humanreadable.go slim down printer interface 2018-05-04 11:15:35 -04:00
humanreadable_test.go use subtest for table units (pkg/printers) 2018-05-14 15:11:48 +08:00
interface.go slim down printer interface 2018-05-04 11:15:35 -04:00
jsonpath.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
jsonpath_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
jsonpath_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
kube_template_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
tabwriter.go
template.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
template_flags.go fix kubectl -o 2018-06-05 19:49:07 +08:00
template_flags_test.go move PrintOptions to genericclioptions 2018-05-21 14:59:41 -04:00
template_test.go use subtest for table units (pkg/printers) 2018-05-14 15:11:48 +08:00