general fixups
This commit is contained in:
parent
7e47940796
commit
f213d26ceb
|
@ -22,12 +22,14 @@ func (args) doBashAuto() {
|
||||||
fmt.Println("--dry-run")
|
fmt.Println("--dry-run")
|
||||||
case "build":
|
case "build":
|
||||||
fmt.Println("--verbose")
|
fmt.Println("--verbose")
|
||||||
|
case "install":
|
||||||
|
fmt.Println("--verbose")
|
||||||
case "repomap-clone":
|
case "repomap-clone":
|
||||||
fmt.Println("--repomap")
|
fmt.Println("--repomap")
|
||||||
default:
|
default:
|
||||||
if strings.HasSuffix(argv.BashAuto[0], ARGNAME) {
|
if strings.HasSuffix(argv.BashAuto[0], ARGNAME) {
|
||||||
// list the subcommands here
|
// list the subcommands here
|
||||||
fmt.Println("--bash list build debian repomap-clone")
|
fmt.Println("--bash list build debian install repomap-clone")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
|
14
main.go
14
main.go
|
@ -221,9 +221,17 @@ func main() {
|
||||||
if argv.DryRun {
|
if argv.DryRun {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err := me.forge.Install(check, nil); err != nil {
|
if argv.Verbose {
|
||||||
log.Warn("INSTALL FAILED", check.GetGoPath(), err)
|
verbose := []string{"-v", "-x"}
|
||||||
failed[check] = fmt.Sprintf("%s %s %v", "go install", check.GetGoPath(), err)
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue