Documentation ¶
Overview ¶
Package runner provides utilities to execute commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Default ¶
type Default struct {
Quiet bool
}
Default is the Runner that executes the command by default.
func (*Default) CmdCombinedOutput ¶
CmdCombinedOutput executes the command and returns the command stdout and stderr.
type Dry ¶
type Dry struct{}
Dry is the Runner that only prints commands and does not execute them.
func (*Dry) CmdCombinedOutput ¶
CmdCombinedOutput prints the command.
type Multi ¶ added in v0.6.0
type Multi struct {
Quiet bool
}
Multi will both print the output for the user and return it to callers. Useful for debugging, e.g. if the importer calls terraform import but it freezes without returning output. Inspired by https://blog.kowalczyk.info/article/wOYk/advanced-command-execution-in-go-with-osexec.html
func (*Multi) CmdCombinedOutput ¶ added in v0.6.0
CmdCombinedOutput executes the command and prints stdout and stderr then returns them.