Documentation
¶
Index ¶
- func Environ() []string
- func ExitCode(result Result) int
- func GetError(result Result) []byte
- func GetOutput(result Result) []byte
- func Getenv(key string) string
- func Output(name string, args ...string) (string, error)
- func Preview(cmd Command) string
- func Run(cmd string) (string, error)
- func Setenv(key string, value string) error
- func Success(result Result) bool
- func Unsetenv(key string) error
- func Which(name string) bool
- type Command
- func Args(cmd Command, args ...string) Command
- func Dir(cmd Command, path string) Command
- func Env(cmd Command, key string, value string) Command
- func FlagIf(cmd Command, condition bool, args ...string) Command
- func New(name string, args ...string) Command
- func SetTimeout(cmd Command, seconds int) Command
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.