summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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()