diff options
Diffstat (limited to 'doGit.go')
| -rw-r--r-- | doGit.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -8,6 +8,7 @@ import ( "path/filepath" "strings" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" @@ -36,6 +37,14 @@ func doGit() error { } if argv.Git.Who != nil { + if _, err := fhelp.CheckCmd("git-who"); err != nil { + if fhelp.QuestionUser("install git-who") { + log.Info("go install -v -x github.com/sinclairtarget/git-who@latest") + } else { + log.Info("not installing") + } + me.sh.GoodExit("git who should be installed") + } cmd := []string{"git", "who"} shell.RunVerbose(cmd) okExit("") |
