summaryrefslogtreecommitdiff
path: root/doRedoGoMod.go
diff options
context:
space:
mode:
Diffstat (limited to 'doRedoGoMod.go')
-rw-r--r--doRedoGoMod.go35
1 files changed, 35 insertions, 0 deletions
diff --git a/doRedoGoMod.go b/doRedoGoMod.go
new file mode 100644
index 0000000..6e9f979
--- /dev/null
+++ b/doRedoGoMod.go
@@ -0,0 +1,35 @@
+package main
+
+// An app to submit patches for the 30 GO GUI repos
+
+import (
+ "os"
+
+ "go.wit.com/log"
+)
+
+func doRedoGoMod() {
+ me.forge.RillRedoGoMod()
+ os.Exit(0)
+ repos := me.forge.Repos.SortByGoPath()
+ for repos.Scan() {
+ repo := repos.Next()
+ if !repo.IsValid() {
+ log.Printf("%10s %-50s", "old?", repo.GetGoPath())
+ continue
+ }
+ log.Printf("running on: %-50s", repo.GetGoPath())
+ repo.RedoGoMod()
+ }
+}
+
+func doEraseGoMod() {
+ /*
+ var cmds [][]string
+ cmds = append(cmds, []string{"rm", "-f", "go.mod", "go.sum"})
+ errs := me.forge.RillCmds(me.packs, cmds)
+ foreach x, y := range errs {
+ log.Info("EraseGoMod() error", x.GoPath, y)
+ }
+ */
+}