diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -4,8 +4,10 @@ package main import ( "strings" + "time" "go.wit.com/dev/alexflint/arg" + "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" @@ -42,6 +44,16 @@ func main() { configSave = false } + if argv.User { + me.forge.CheckoutUser() + okExit("") + } + + if argv.Master { + me.forge.CheckoutMaster() + okExit("") + } + if argv.Delete != "" { me.forge.DeleteByGoPath(argv.Delete) me.forge.SetConfigSave(true) @@ -49,6 +61,7 @@ func main() { } if argv.Dirty { + now := time.Now() all := me.forge.Repos.SortByFullPath() for all.Scan() { repo := all.Next() @@ -65,6 +78,7 @@ func main() { } } doCobol() + log.Info("dirty check took:", shell.FormatDuration(time.Since(now))) me.forge.SetConfigSave(configSave) okExit("") } |
