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") 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
View File

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