summaryrefslogtreecommitdiff
path: root/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'run.go')
-rw-r--r--run.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/run.go b/run.go
index d023070..2d5d468 100644
--- a/run.go
+++ b/run.go
@@ -213,6 +213,10 @@ func RunCmdRun(workingpath string, parts []string) error {
return nil
}
+func (r *RunResult) Stdout() string {
+ return string(r.Output)
+}
+
// run, but set the working path
func Output(path string, args []string) *RunResult {
r := new(RunResult)