config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ListFlag  = "list"
	SetFlag   = "set"
	UnsetFlag = "unset"
)

Variables

This section is empty.

Functions

func SetKey added in v1.2.0

func SetKey(key string, value interface{}, v *viper.Viper)

func UnsetKey added in v1.2.0

func UnsetKey(key string, value interface{}, v *viper.Viper)

func Write added in v1.2.0

func Write(conf config.Config, filterFn filterFn) error

Write takes a Config and lets viper write it to the config file.

Types

type ConfigCmd

type ConfigCmd struct {
	// contains filtered or unexported fields
}

func NewConfigCmd

func NewConfigCmd(service config.Service, analyticsTrackerFn analytics.TrackerFn) *ConfigCmd

func (ConfigCmd) Cmd

func (cmd ConfigCmd) Cmd() *cobra.Command

func (ConfigCmd) HelpCalled

func (cmd ConfigCmd) HelpCalled() bool

Jump to

Keyboard shortcuts

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