set

package
v2.21.0-pre.3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdConfigSet

func NewCmdConfigSet(f *cmdutil.Factory, runF func(*SetOptions) error) *cobra.Command

func ValidateKey added in v2.14.0

func ValidateKey(key string) error

func ValidateValue added in v2.14.0

func ValidateValue(key, value string) error

Types

type InvalidValueError added in v2.14.0

type InvalidValueError struct {
	ValidValues []string
}

func (InvalidValueError) Error added in v2.14.0

func (e InvalidValueError) Error() string

type SetOptions

type SetOptions struct {
	IO     *iostreams.IOStreams
	Config config.Config

	Key      string
	Value    string
	Hostname string
}

Jump to

Keyboard shortcuts

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