diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -30,9 +30,10 @@ func main() { list() scan() repomap() - os.Exit(0) if argv.RedoGoMod { + me.forge.RillRedoGoMod() + os.Exit(0) repos := me.forge.Repos.SortByGoPath() for repos.Scan() { repo := repos.Next() @@ -40,14 +41,15 @@ func main() { log.Printf("%10s %-50s", "old?", repo.GetGoPath()) continue } - if me.forge.IsReadOnly(repo.GetGoPath()) { - log.Printf("%10s %-50s", "readonly", repo.GetGoPath()) - continue + log.Printf("running on: %-50s", repo.GetGoPath()) + if argv.Erase { + repo.EraseGoMod() + } else { + repo.RedoGoMod() } - repo.RedoGoMod() } - os.Exit(0) } + os.Exit(0) me.myGui = gui.New() me.myGui.Default() |
