general fixups

This commit is contained in:
Jeff Carr 2025-01-07 21:21:44 -06:00
parent 7e47940796
commit f213d26ceb
2 changed files with 14 additions and 4 deletions

View File

@ -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
View File

@ -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
}