cli_config

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKlothoConfigPath

func CreateKlothoConfigPath() error

func KlothoConfigPath

func KlothoConfigPath(file string) (string, error)

KlothoConfigPath returns a path to a file in ~/.klotho/<filename>

Types

type EnvVar added in v0.6.3

type EnvVar string

EnvVar represents an environment variable, specified by its key name. wrapper around os.Getenv. This string's value is the env var key. Use GetOr to get its value, or a default if the value isn't set.

func (EnvVar) GetOr added in v0.6.3

func (s EnvVar) GetOr(defaultValue string) string

GetOr uses os.Getenv to get the env var specified by the target EnvVar. If that env var's value is unset or empty, it returns the defaultValue.

Jump to

Keyboard shortcuts

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