common

package
v0.8.18 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package common provides shared utilities and functions utilized across multiple earth subcommands.

Index

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

func IfNilBoolDefault(ptr *bool, defaultValue bool) bool

IfNilBoolDefault returns the boolean value if ptr is set, or the default value otherwise.

func IsEarthlyBinary

func IsEarthlyBinary(path string) bool

IsEarthlyBinary checks whether the specified path refers to an earthbuild executable binary.

func ProcessSecrets

func ProcessSecrets(
	secrets, secretFiles []string, dotEnvMap map[string]string, secretsFilePath string,
) (map[string][]byte, error)

ProcessSecrets processes local and remote secrets.

func Wrap

func Wrap(s ...string) string

Wrap formats strings by joining them with newlines and tabs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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