command

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentGoEnv

func CurrentGoEnv() []string

CurrentGoEnv returns the environment with the given GOOS/GOARCH set to the current runtime.GOOS/GOARCH

func GetEnv

func GetEnv(envs map[string]string) []string

GetEnv gets a copy of the process environment variables and overrides them with the environment variable map

func GoEnv

func GoEnv(os, arch string) []string

GoEnv returns the environment with the given GOOS/GOARCH set

func Run

func Run(v VersionInfo) int

func RunCommand

func RunCommand(name string, args ...string) error

RunCommand runs the given command

func RunCommandOut

func RunCommandOut(name string, args ...string) (string, error)

RunCommand runs the given command and returns stdout

func RunEnvCommand

func RunEnvCommand(env []string, dir string, name string, args ...string) (string, error)

RunEnvCommand runs the given command and returns stdout

func SetDebug

func SetDebug(l *log.Logger)

SetDebug sets the debug logger

Types

type ParsedData added in v0.3.0

type ParsedData struct {
	Functions []parse.TaskFunction
}

type VersionInfo added in v0.5.0

type VersionInfo struct {
	Version   string
	GitCommit string
	BuildTime string
}

Jump to

Keyboard shortcuts

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