From cc55a5ad7a0561ba8385e35d2ddf7fdf94555c75 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 23 Dec 2024 02:37:48 -0600 Subject: start working on the GUI again for this --- main.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 562565d..2bf1e9c 100644 --- a/main.go +++ b/main.go @@ -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("") } -- cgit v1.2.3