config

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 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 */
	LogFilePath    string `` /* 126-byte string literal not displayed */
	LogFileSize    int    `yaml:"LogFileSize" env:"LOG_FILE_SIZE" env-default:"500" env-description:"Defines a file size in megabytes to rotate logs"`
	LogFileBackups int    `` /* 133-byte string literal not displayed */
}

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