Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package config provides CLI commands for managing Results configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(p common.Params) *cobra.Command

Command creates and returns a new cobra.Command for the 'config' subcommand. It sets up the command structure for managing Results configuration, including options to set, view, and reset the config.

Parameters:

  • p: common.Params - A struct containing common parameters used across the CLI.

Returns:

  • *cobra.Command: A pointer to the newly created cobra.Command for the 'config' subcommand.

Types

type ResetOptions

type ResetOptions struct {
	Config config.Config
}

ResetOptions holds the configuration for the reset command.

type SetOptions

type SetOptions struct {
	Config config.Config
}

SetOptions holds options for the set command

type ViewOptions

type ViewOptions struct {
	Config      config.Config
	PrintFlags  *genericclioptions.PrintFlags
	PrinterFunc printers.ResourcePrinterFunc
	IOStreams   *genericiooptions.IOStreams
}

ViewOptions contains the configuration for the view command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL