utils

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const UNIX_DEFAULT_SHELL string = "bash"

Variables

This section is empty.

Functions

func CombineEnv added in v1.5.0

func CombineEnv(envs ...*[]string) []string

func CombineEnvMaps added in v1.5.0

func CombineEnvMaps(envs ...*map[string]string) map[string]string

func EnvMapAsSlice added in v1.5.0

func EnvMapAsSlice(env map[string]string) []string

func EnvSliceAsMap added in v1.5.0

func EnvSliceAsMap(env []string) map[string]string

func GetOSShell added in v1.1.0

func GetOSShell(envShell *platform.PlatformMap[string]) string

func GetOSShellArgs added in v1.1.0

func GetOSShellArgs(cmd string) []string

func GetRealPath

func GetRealPath(env []string, path string) string

func GetShellWhich added in v1.1.0

func GetShellWhich() string

func IsGitURL added in v1.4.0

func IsGitURL(url string) bool

func PathExists added in v1.4.0

func PathExists(path string) (error, bool)

func ResolveEnvPaths added in v1.5.0

func ResolveEnvPaths(envs ...[]string) []string

func RunCmdAsFile added in v1.2.0

func RunCmdAsFile(env []string, contents string, envShell *platform.PlatformMap[string]) error

func RunCmdGetOutput

func RunCmdGetOutput(env []string, bin string, args ...string) ([]byte, error)

func RunCmdGetSuccess

func RunCmdGetSuccess(env []string, bin string, args ...string) (error, bool)

func RunCmdPassThrough

func RunCmdPassThrough(env []string, bin string, args ...string) error

func RunCmdPassThroughChained

func RunCmdPassThroughChained(env []string, commands [][]string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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