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)
info: install
forge
forge dirty
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)
}

View File

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

10
main.go
View File

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