utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 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 GetOSShell added in v1.1.0

func GetOSShell(envShell *appconfig.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 MergeMap added in v1.2.0

func MergeMap[K comparable, V any](me map[K]V, other map[K]V) map[K]V

func RunCmdAsFile added in v1.2.0

func RunCmdAsFile(env []string, contents string, envShell *appconfig.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