- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for NewPrintFlags (0.2 sec)
-
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/print_flags_test.go
"apiVersion": "v1", "metadata": map[string]interface{}{ "name": "bar", }, }, }, }, }, "pod/bar\n"}, } printFlags := NewPrintFlags("").WithTypeSetter(scheme.Scheme).WithDefaultOutput("name") printer, err := printFlags.ToPrinter() if err != nil { t.Fatalf("unexpected err: %v", err) } for name, item := range tests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 31 23:04:01 UTC 2019 - 2K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/print_flags.go
func (f *PrintFlags) WithTypeSetter(scheme *runtime.Scheme) *PrintFlags { f.TypeSetterPrinter = printers.NewTypeSetter(scheme) return f } // NewPrintFlags returns a default *PrintFlags func NewPrintFlags(operation string) *PrintFlags { outputFormat := "" return &PrintFlags{ OutputFormat: &outputFormat, JSONYamlPrintFlags: NewJSONYamlPrintFlags(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 04 00:16:47 UTC 2022 - 5.6K bytes - Viewed (0) -
pkg/kubectl/cmd/convert/convert.go
resource.FilenameOptions genericiooptions.IOStreams } func NewConvertOptions(ioStreams genericiooptions.IOStreams) *ConvertOptions { return &ConvertOptions{ PrintFlags: genericclioptions.NewPrintFlags("converted").WithTypeSetter(scheme.Scheme).WithDefaultOutput("yaml"), local: true, IOStreams: ioStreams, } } // NewCmdConvert creates a command object for the generic "convert" action, which
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 03:21:17 UTC 2023 - 9.6K bytes - Viewed (0)