- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for WithDefaultOutput (0.32 sec)
-
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/print_flags_test.go
"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 { buff := &bytes.Buffer{} err := printer.PrintObj(item.obj, buff)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 31 23:04:01 UTC 2019 - 2K bytes - Viewed (0) -
cmd/kubeadm/app/util/output/output.go
_ = cmd.Flags().MarkDeprecated("experimental-output", "please use --output instead.") } // WithDefaultOutput sets a default output format if one is not provided through a flag value func (pf *PrintFlags) WithDefaultOutput(outputFormat string) *PrintFlags { pf.OutputFormat = &outputFormat return pf }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 08:22:45 UTC 2024 - 8K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/print_flags.go
if f.OutputFlagSpecified == nil { f.OutputFlagSpecified = func() bool { return cmd.Flag("output").Changed } } } } // WithDefaultOutput sets a default output format if one is not provided through a flag value func (f *PrintFlags) WithDefaultOutput(output string) *PrintFlags { f.OutputFormat = &output return f }
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
} 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 // translates the config file into a given version.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 03:21:17 UTC 2023 - 9.6K bytes - Viewed (0)