summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-03 13:23:12 -0600
committerJeff Carr <[email protected]>2024-12-03 13:23:12 -0600
commitd1cc3bd09a78bc83f8fa50af267c15bebac880df (patch)
tree40599463d3416d959b790211a5d69d62b9dc8762 /main.go
parentc2bd3b64be97cb5a58e9b3271339b5f75d8ccc0a (diff)
on the way to somewherev0.22.5
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/main.go b/main.go
index 7b0bef8..4b9b7c3 100644
--- a/main.go
+++ b/main.go
@@ -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()