Documentation
¶
Overview ¶
Package common provides shared utilities and functions utilized across multiple earth subcommands.
Index ¶
- func CombineVariables(dotEnvMap map[string]string, flagArgs, buildFlagArgs []string) (*variables.Scope, error)
- func GetBinaryName() string
- func GetPlatform() string
- func IfNilBoolDefault(ptr *bool, defaultValue bool) bool
- func IsEarthlyBinary(path string) bool
- func ProcessSecrets(secrets, secretFiles []string, dotEnvMap map[string]string, ...) (map[string][]byte, error)
- func Wrap(s ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineVariables ¶
func CombineVariables(dotEnvMap map[string]string, flagArgs, buildFlagArgs []string) (*variables.Scope, error)
CombineVariables merges dot env map with flag arguments to return a new variable scope.
func GetBinaryName ¶
func GetBinaryName() string
GetBinaryName returns the default executable binary name for earthbuild.
func GetPlatform ¶
func GetPlatform() string
GetPlatform returns the current operating system and architecture platform.
func IfNilBoolDefault ¶
IfNilBoolDefault returns the boolean value if ptr is set, or the default value otherwise.
func IsEarthlyBinary ¶
IsEarthlyBinary checks whether the specified path refers to an earthbuild executable binary.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.