aboutsummaryrefslogtreecommitdiff
path: root/pkg/cli/command.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2017-07-07 11:30:47 +0200
committerStefan Majewsky <majewsky@gmx.net>2017-07-07 11:33:00 +0200
commit79933615f7988cb731baa0768a45b39008f18b20 (patch)
treeab2199aa7940fdbdca7c6e6e0faaf47854342ef5 /pkg/cli/command.go
parent58a4af83e0caf09744dd698b5be937205b81e733 (diff)
downloadgofu-79933615f7988cb731baa0768a45b39008f18b20.tar.gz
add first test
Diffstat (limited to 'pkg/cli/command.go')
-rw-r--r--pkg/cli/command.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/cli/command.go b/pkg/cli/command.go
index d07a120..a9938d1 100644
--- a/pkg/cli/command.go
+++ b/pkg/cli/command.go
@@ -54,6 +54,7 @@ func (e commandError) Error() string {
//suffices for all regular operation.
type CommandRunner func(c Command, stdin io.Reader, stdout, stderr io.Writer) error
+//DefaultCommandRunner is a CommandRunner that actually executes the command.
func DefaultCommandRunner(c Command, stdin io.Reader, stdout, stderr io.Writer) error {
cmd := exec.Command(c.Program[0], c.Program[1:]...)
cmd.Stdin = stdin