summaryrefslogtreecommitdiff
path: root/doGit.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-19 13:17:34 -0500
committerJeff Carr <[email protected]>2025-10-19 13:17:34 -0500
commit81c1f68da6c63dfca51ac381a334d5900d5307a7 (patch)
tree658d4ea86e210096db6c50a7df8a5c44c7c027d8 /doGit.go
parent4c9525596db4ee50f6b0cdcc4f694cd0feca8eac (diff)
fix more wrong stuff
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) {