config

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 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 */
}

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