output cleanups

This commit is contained in:
Jeff Carr 2025-01-08 10:10:14 -06:00
parent e27e1716d7
commit ae8fd94a2c
4 changed files with 9 additions and 9 deletions

View File

@ -2,7 +2,7 @@ VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d) BUILDTIME = $(shell date +%Y.%m.%d)
info: install info: install
forge forge dirty
vet: vet:
@GO111MODULE=off go vet @GO111MODULE=off go vet

View File

@ -53,7 +53,7 @@ func doCheckDirtyAndConfigSave() {
} }
} }
} }
log.Printf("dirty check %d took:%s\n", count, shell.FormatDuration(time.Since(now))) log.Printf("dirty check (%d repos) took:%s\n", count, shell.FormatDuration(time.Since(now)))
me.forge.SetConfigSave(configSave) me.forge.SetConfigSave(configSave)
} }

View File

@ -7,7 +7,9 @@ import (
) )
func okExit(thing string) { func okExit(thing string) {
log.Info(thing, "ok") if thing != "" {
log.Info("forge exit:", thing, "ok")
}
if configSave { if configSave {
me.forge.SetConfigSave(configSave) me.forge.SetConfigSave(configSave)
} }

10
main.go
View File

@ -94,8 +94,6 @@ func main() {
okExit("") okExit("")
} }
log.Info("found", me.found.Len(), "repos. found", len(me.foundPaths), "paths from .config/forge")
if argv.Dirty != nil { if argv.Dirty != nil {
findAll() // select all the repos findAll() // select all the repos
doCheckDirtyAndConfigSave() doCheckDirtyAndConfigSave()
@ -136,25 +134,25 @@ func main() {
if argv.GitReset != nil { if argv.GitReset != nil {
findAll() // select all the repos findAll() // select all the repos
doGitReset() doGitReset()
okExit("patches") okExit("reset")
} }
if argv.List != nil { if argv.List != nil {
argv.List.findRepos() argv.List.findRepos()
// print out the repos // print out the repos
me.forge.PrintHumanTable(me.found) me.forge.PrintHumanTable(me.found)
okExit("patches") okExit("")
} }
if argv.Patch != nil { if argv.Patch != nil {
if argv.Patch.Show != nil { if argv.Patch.Show != nil {
sendDevelDiff("fixme") sendDevelDiff("fixme")
// sendMasterDiff() // sendMasterDiff()
okExit("patches") okExit("")
} }
if argv.Patch.List != nil { if argv.Patch.List != nil {
listPatches() listPatches()
okExit("patches") okExit("patch list")
} }
} }