config

package
v0.0.0-...-5506a95 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvConfig

type EnvConfig struct {
	EMPOROUS_DEV_MODE bool // true: show unimplemented stubs in --help
}

EnvConfig stores CLI runtime configuration from environment variables. Struct field names should match the name of the environment variable that the field is derived from.

func ReadEnvConfig

func ReadEnvConfig() EnvConfig

type RootOptions

type RootOptions struct {
	IOStreams genericclioptions.IOStreams
	LogLevel  string
	Logger    log.Logger
	CacheDir  string
	EnvConfig
}

RootOptions describe global configuration options that can be set.

Jump to

Keyboard shortcuts

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