Documentation
¶
Index ¶
- func Environ() []string
- func Fatal(msg string)
- func Getenv(key string) string
- func Lines(name string, args ...string) ([]string, error)
- func Output(name string, args ...string) (string, error)
- func RequireCommand(name string) error
- func Run(cmd string) (string, error)
- func Setenv(key string, value string) error
- func Unsetenv(key string) error
- func Which(name string) bool
- type Command
- func (cmd Command) Dir(path string) Command
- func (cmd Command) Env(key string, value string) Command
- func (cmd Command) Execute() Result
- func (cmd Command) Flag(name string, value string) Command
- func (cmd Command) FlagIf(condition bool, args ...string) Command
- func (cmd Command) Output() (string, error)
- func (cmd Command) Preview() string
- func (cmd Command) Timeout(seconds int) Command
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireCommand ¶ added in v0.6.8
Types ¶
Click to show internal directories.
Click to hide internal directories.