summaryrefslogtreecommitdiff
path: root/pkg/cli/command.go
diff options
context:
space:
mode:
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