Commit Graph

14 Commits

Author SHA1 Message Date
Sean Sullivan
8b2130343e Moves tableprinter.go and tabwriter.go to cli-runtime/pkg/printers. Copies PrintOptions to cli-runtime/pkg/printers. 2019-10-22 23:45:08 -07:00
Sean Sullivan
33bf8a8ebd Update PrintOptions to more appropriate GenerateOptions in some cases 2019-08-23 09:25:22 -07:00
Connor Hoehn
265fd048c0 Remove the OutputFormatType and OutputFormatArgument fields as they are no longer used. 2019-06-25 09:10:21 -04:00
Baasbank
d97b7f20f8 fixes golint errors in pkg/printers/storage
fixes golint errors in pkg/printers

fixes golint errors for pkg/printers/internalversion

implements recommended changes
2019-05-01 17:02:55 +01:00
Kubernetes Prow Robot
29638dd68f
Merge pull request #67746 from WanLinghao/show-all-remove
Clean deprecated `ShowAll` variable in PrintOptions
2019-02-12 18:45:02 -08:00
WanLinghao
de85b7c8a8 Clean deprecated ShowAll variable in PrintOptions 2019-02-11 09:18:40 +08:00
zuoxiu.jm
da9387131e prune internal clients from kubectl describer 2018-11-16 00:11:10 +08:00
David Eads
e1fca70506 slim down printer interface 2018-05-04 11:15:35 -04:00
Jordan Liggitt
3b8a570437
Restore show-kind function when printing multiple kinds 2018-04-01 00:24:25 -04:00
juanvallejo
d3773b4b06
consolidate printer OutputOpts w PrintOpts
This patch removes the use of printers.OutputOptions in favor of only
having a single struct for setting / passing printer options set by user
flags.
2017-11-20 14:49:23 -05:00
Sunil Arora
f768a63fb0 Get cmd uses print-column extn from Openapi schema
Get command now uses metadata x-kubernetes-print-columns, if present, in Openapi schema
to format output for a resource. This functionality is guarded by a boolean
flag 'use-openapi-print-columns'.
2017-06-06 13:30:24 -07:00
Waseem Ahmad
8442a118ea Denote if a printer is generic.
This fixes #38779.

This allows us to avoid case in which printers.GetStandardPrinter
returns nil for both printer and err removing any potential panics that
may arise throughout kubectl commands.

Please see #38779 and #38112 for complete context.

Add comment explaining adding handlers to printers.HumanReadablePrinter
also remove an unnecessary conversion of printers.HumanReadablePrinter
to printers.ResourcePrinter.
2017-05-31 13:02:23 +05:30
Clayton Coleman
3704ceffd2
Refactor printers to separate typed printers from generic code 2017-02-23 00:28:30 -05:00
Clayton Coleman
6d1c7308a5
Move, but do not refactor, printers to their own package 2017-02-23 00:28:30 -05:00