cmd

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeConfig

func InitializeConfig(cmd *cobra.Command, flagToEnvMapping map[string]string) error

initializeConfig is a helper function which sets the environment variable for a flag. It gives precedence to the flag, meaning that the env is only taken if the flag is empty. It assigns the environment variables to the flags which are defined in the map flagToEnvMap.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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