summaryrefslogtreecommitdiff
path: root/doGit.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGit.go')
-rw-r--r--doGit.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/doGit.go b/doGit.go
index 1bd2cd6..5240643 100644
--- a/doGit.go
+++ b/doGit.go
@@ -10,6 +10,7 @@ import (
"path/filepath"
"strings"
+ "github.com/go-cmd/cmd"
"go.wit.com/lib/fhelp"
"go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/gitpb"
@@ -36,13 +37,15 @@ func doGitCreate(namespace string) (string, error) {
return s, err
}
-func runCommand(cmd []string) (string, error) {
- var err error
- s := log.Sprintf("cmd= %v ", cmd)
+func runCommand(cmds []string) (string, error) {
+ var r cmd.Status
+ // var err error
+ s := log.Sprintf("cmd= %v ", cmds)
+ log.Info("GOING TO RUN?", s)
if fhelp.QuestionUser("Run " + s + " here") {
- _, err = shell.RunVerbose(cmd)
+ r = shell.Run(cmds)
}
- return "Ran " + s, err
+ return "Ran " + s, r.Error
}
func doGit() (string, error) {