cli_config

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedType = errors.New("Invalid env var config setting: value is an unsupported type.")
	ErrCouldNotParse   = errors.New("Invalid env var config setting: failed to parse value")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	AskVaultPass          bool              `yaml:"ask_vault_pass"`
	CheckForUpdates       bool              `yaml:"check_for_updates"`
	LoadPlugins           bool              `yaml:"load_plugins"`
	Open                  map[string]string `yaml:"open"`
	VirtualenvIntegration bool              `yaml:"virtualenv_integration"`
}

func NewConfig

func NewConfig(defaultConfig Config) Config

func (*Config) LoadEnv

func (c *Config) LoadEnv(prefix string) error

func (*Config) LoadFile

func (c *Config) LoadFile(path string) error

Jump to

Keyboard shortcuts

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