Documentation ¶
Index ¶
- func CurrentGoEnv() []string
- func GetEnv(envs map[string]string) []string
- func GoEnv(os, arch string) []string
- func Run() int
- func RunCommand(name string, args ...string) error
- func RunCommandOut(name string, args ...string) (string, error)
- func RunEnvCommand(env []string, dir string, name string, args ...string) (string, error)
- func SetDebug(l *log.Logger)
- type TemplateData
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 ¶
GetEnv gets a copy of the process environment variables and overrides them with the environment variable map
func RunCommand ¶
RunCommand runs the given command
func RunCommandOut ¶
RunCommand runs the given command and returns stdout
func RunEnvCommand ¶
RunEnvCommand runs the given command and returns stdout
Types ¶
type TemplateData ¶
type TemplateData struct { Package string Functions []parse.TaskFunction }
Click to show internal directories.
Click to hide internal directories.