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)
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
|
|
||||||
info: install
|
info: install
|
||||||
forge
|
forge dirty
|
||||||
|
|
||||||
vet:
|
vet:
|
||||||
@GO111MODULE=off go 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)
|
me.forge.SetConfigSave(configSave)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
4
exit.go
4
exit.go
|
@ -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
10
main.go
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue