diff options
| author | Jeff Carr <[email protected]> | 2024-12-03 13:23:12 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-03 13:23:12 -0600 |
| commit | d1cc3bd09a78bc83f8fa50af267c15bebac880df (patch) | |
| tree | 40599463d3416d959b790211a5d69d62b9dc8762 /main.go | |
| parent | c2bd3b64be97cb5a58e9b3271339b5f75d8ccc0a (diff) | |
on the way to somewherev0.22.5
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() |
