diff options
| -rw-r--r-- | main.go | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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() |
