Update PrintOptions to more appropriate GenerateOptions in some cases

This commit is contained in:
Sean Sullivan
2019-08-23 09:25:22 -07:00
parent 52a9f18b07
commit 33bf8a8ebd
6 changed files with 98 additions and 114 deletions

View File

@@ -36,9 +36,8 @@ type HumanPrintFlags struct {
// get.go-specific values
NoHeaders bool
Kind schema.GroupKind
AbsoluteTimestamps bool
WithNamespace bool
Kind schema.GroupKind
WithNamespace bool
}
// SetKind sets the Kind option
@@ -127,10 +126,9 @@ func NewHumanPrintFlags() *HumanPrintFlags {
columnLabels := []string{}
return &HumanPrintFlags{
NoHeaders: false,
WithNamespace: false,
AbsoluteTimestamps: false,
ColumnLabels: &columnLabels,
NoHeaders: false,
WithNamespace: false,
ColumnLabels: &columnLabels,
Kind: schema.GroupKind{},
ShowLabels: &showLabels,