diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 13:17:34 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 13:17:34 -0500 |
| commit | 81c1f68da6c63dfca51ac381a334d5900d5307a7 (patch) | |
| tree | 658d4ea86e210096db6c50a7df8a5c44c7c027d8 /doGit.go | |
| parent | 4c9525596db4ee50f6b0cdcc4f694cd0feca8eac (diff) | |
fix more wrong stuff
Diffstat (limited to 'doGit.go')
| -rw-r--r-- | doGit.go | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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) { |
