config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessArgs

func ProcessArgs(cfg interface{}, a *Args, cmd *cobra.Command)

ProcessArgs processes and handles CLI arguments

Types

type Args

type Args struct {
	ConfigPath      string
	ShareConfigPath string
}

Args expose available global args for cli command

type GlobalConfig

type GlobalConfig struct {
	LogLevel       string `yaml:"LogLevel" env:"LOG_LEVEL" env-default:"info" env-description:"Defines logger's log level'"`
	LogFormat      string `` /* 149-byte string literal not displayed */
	LogLevelFormat string `` /* 189-byte string literal not displayed */
	DebugServices  string `yaml:"DebugServices" env:"DEBUG_SERVICES" env-default:"" env-description:"Defines components that will have debug level log"`
}

GlobalConfig expose available global config for cli command

Jump to

Keyboard shortcuts

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