helpers

package
v0.0.0-...-6157915 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugCommandPrefix = "\nCMD>"
	DebugOutPrefix     = "OUT: "
	DebugErrPrefix     = "ERR: "
)

Variables

This section is empty.

Functions

func AddOrReplaceEnvironment

func AddOrReplaceEnvironment(env []string, newEnvName string, newEnvVal string) []string

AddOrReplaceEnvironment will update environment if it already exists or will add a new environment with the given environment name and details.

func BuildStembuild

func BuildStembuild(version string) (string, error)

func CopyRecursive

func CopyRecursive(destRoot, srcRoot string) error

func EnvMustExist

func EnvMustExist(variableName string) string

func ExtractGzipArchive

func ExtractGzipArchive(name string) (string, error)

ExtractGzipArchive extracts the tgz archive name to a temp directory returning the filepath of the temp directory.

func ReadFile

func ReadFile(name string) (string, error)

func RunCommandInDir

func RunCommandInDir(workingDir, command string, args ...string) *Session

func Stembuild

func Stembuild(command string, args ...string) *Session

func StembuildWithEnv

func StembuildWithEnv(passedEnv map[string]string, command string, args ...string) *Session

func WriteCommand

func WriteCommand(command string, args []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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