internal

package
v2.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFileUsed

func ConfigFileUsed() string

func Init

func Init(cmd *cobra.Command, configs []Config)

func LoadValues

func LoadValues(cmd *cobra.Command, options Options)

Types

type Config

type Config struct {
	Name       string
	Shorthand  string
	Usage      string
	Required   bool
	Persistent bool
	Default    interface{}
}

func (Config) Set

func (s Config) Set(value interface{})

func (Config) Value

func (s Config) Value() interface{}

type Options

type Options struct {
	ConfigFile  string
	ConfigName  string
	ConfigType  string
	ConfigPaths []string
	EnvPrefix   string
}

Jump to

Keyboard shortcuts

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