diff options
| -rw-r--r-- | argvAutocomplete.go | 4 | ||||
| -rw-r--r-- | main.go | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/argvAutocomplete.go b/argvAutocomplete.go index a11d772..7c1c6d2 100644 --- a/argvAutocomplete.go +++ b/argvAutocomplete.go @@ -22,12 +22,14 @@ func (args) doBashAuto() { fmt.Println("--dry-run") case "build": fmt.Println("--verbose") + case "install": + fmt.Println("--verbose") case "repomap-clone": fmt.Println("--repomap") default: if strings.HasSuffix(argv.BashAuto[0], ARGNAME) { // list the subcommands here - fmt.Println("--bash list build debian repomap-clone") + fmt.Println("--bash list build debian install repomap-clone") } } os.Exit(0) @@ -221,9 +221,17 @@ func main() { if argv.DryRun { continue } - if err := me.forge.Install(check, nil); err != nil { - log.Warn("INSTALL FAILED", check.GetGoPath(), err) - failed[check] = fmt.Sprintf("%s %s %v", "go install", check.GetGoPath(), err) + if argv.Verbose { + verbose := []string{"-v", "-x"} + if err := me.forge.Install(check, verbose); err != nil { + log.Warn("INSTALL FAILED", check.GetGoPath(), err) + failed[check] = fmt.Sprintf("%s %s %v", "go install", check.GetGoPath(), err) + } + } else { + if err := me.forge.Install(check, nil); err != nil { + log.Warn("INSTALL FAILED", check.GetGoPath(), err) + failed[check] = fmt.Sprintf("%s %s %v", "go install", check.GetGoPath(), err) + } } continue } |
