- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for printOptions (0.29 sec)
-
staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go
object runtime.Object options PrintOptions expected string }{ // Test non-table default printing for a pod. { object: testPod, options: PrintOptions{}, expected: "NAME AGE\ntest-pod-name <unknown>\n", }, // Test non-table default printing for a pod with "NoHeaders" option. { object: testPod, options: PrintOptions{NoHeaders: true},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 30 15:08:43 UTC 2022 - 24.4K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go
// received from watches. type HumanReadablePrinter struct { options PrintOptions lastType interface{} lastColumns []metav1.TableColumnDefinition printedHeaders bool } // NewTablePrinter creates a printer suitable for calling PrintObj(). func NewTablePrinter(options PrintOptions) ResourcePrinter { printer := &HumanReadablePrinter{ options: options, } return printer }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 30 15:08:43 UTC 2022 - 16.7K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/interface.go
type ResourcePrinter interface { // PrintObj receives a runtime object, formats it and prints it to a writer. PrintObj(runtime.Object, io.Writer) error } // PrintOptions struct defines a struct for various print options type PrintOptions struct { NoHeaders bool WithNamespace bool WithKind bool Wide bool ShowLabels bool Kind schema.GroupKind ColumnLabels []string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 30 00:36:07 UTC 2022 - 1.5K bytes - Viewed (0) -
platforms/jvm/toolchains-jvm/src/main/java/org/gradle/jvm/toolchain/internal/task/ShowToolchainsTask.java
List<JvmToolchainMetadata> invalidToolchains = invalidToolchains(toolchains); printOptions(output); validToolchains.forEach(toolchainRenderer::printToolchain); toolchainRenderer.printInvalidToolchains(invalidToolchains); } private void printOptions(StyledTextOutput output) { boolean detectionEnabled = getToolchainConfiguration().isAutoDetectEnabled();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 14:04:46 UTC 2024 - 4.6K bytes - Viewed (0) -
cmd/genman/gen_kube_man.go
fmt.Fprintf(out, format, flag.Shorthand, flag.Name, flag.DefValue, flag.Usage) } else { fmt.Fprintf(out, format, flag.Name, flag.DefValue, flag.Usage) } }) } func printOptions(out *bytes.Buffer, command *cobra.Command) { flags := command.NonInheritedFlags() if flags.HasFlags() { fmt.Fprintf(out, "# OPTIONS\n") printFlags(out, flags) fmt.Fprintf(out, "\n") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 05 12:03:09 UTC 2023 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/bench_test.go
} func BenchmarkTablePrinter(b *testing.B) { data := newBenchmarkTable() b.ResetTimer() benchmarkPrinter(b, func() ResourcePrinter { return NewTablePrinter(PrintOptions{}) }, data) } func BenchmarkGoTemplatePrinter(b *testing.B) { data := newBenchmarkList() b.ResetTimer() benchmarkPrinter(b, func() ResourcePrinter {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 30 00:36:07 UTC 2022 - 4.2K bytes - Viewed (0)