output cleanups
This commit is contained in:
parent
e27e1716d7
commit
ae8fd94a2c
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
4
exit.go
4
exit.go
|
@ -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
10
main.go
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue