common

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	VLogLevel  = "log_level"
	VTarget    = "target"
	VSummary   = "summary"
	VConstants = "constants"
	VVariables = "variables"
)

Variables

View Source
var (

	// Template config values
	TemplateConstants map[string]interface{}

	// Template config values
	TemplateVariables []template.VariableConfig
)

Functions

func GetTemplateConfig added in v0.8.0

func GetTemplateConfig() (map[string]interface{}, []template.VariableConfig, error)

GetTemplateConfig loads the constants and variables from the viper config

func GetViper

func GetViper() *viper.Viper

GetViper returns the viper singleton

func InitViper

func InitViper() *viper.Viper

InitViper initializes the viper singleton for the CLI

func ParseTemplateOverrides added in v0.8.0

func ParseTemplateOverrides(setFlags []string) (map[string]string, error)

func SetupClI

func SetupClI(logLevel string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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