diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2017-07-07 11:30:47 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2017-07-07 11:33:00 +0200 |
| commit | 79933615f7988cb731baa0768a45b39008f18b20 (patch) | |
| tree | ab2199aa7940fdbdca7c6e6e0faaf47854342ef5 /pkg/cli/command.go | |
| parent | 58a4af83e0caf09744dd698b5be937205b81e733 (diff) | |
| download | gofu-79933615f7988cb731baa0768a45b39008f18b20.tar.gz | |
add first test
Diffstat (limited to 'pkg/cli/command.go')
| -rw-r--r-- | pkg/cli/command.go | 1 |
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 |
