From f3803d59294d692c4b0be4ad5cef9ad8116b3797 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 2 Dec 2024 08:44:58 -0600 Subject: [PATCH] still trying to automate releases --- main.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/main.go b/main.go index 3f3a057..e109bd1 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,23 @@ func main() { // may exit list() + if argv.RedoGoMod { + repos := me.forge.Repos.SortByGoPath() + for repos.Scan() { + repo := repos.Next() + if !repo.IsValid() { + log.Printf("%10s %-50s", "old?", repo.GetGoPath()) + continue + } + if me.forge.IsReadOnly(repo.GetGoPath()) { + log.Printf("%10s %-50s", "readonly", repo.GetGoPath()) + continue + } + repo.RedoGoMod() + } + os.Exit(0) + } + me.myGui = gui.New() me.myGui.Default()