general fixups
This commit is contained in:
parent
7e47940796
commit
f213d26ceb
|
@ -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)
|
||||
|
|
14
main.go
14
main.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue