summaryrefslogtreecommitdiff
path: root/doCommon.go
diff options
context:
space:
mode:
Diffstat (limited to 'doCommon.go')
-rw-r--r--doCommon.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/doCommon.go b/doCommon.go
new file mode 100644
index 0000000..db5a0a0
--- /dev/null
+++ b/doCommon.go
@@ -0,0 +1,25 @@
+package main
+
+import "go.wit.com/log"
+
+func doScan() {
+ me.forge.ScanGoSrc()
+}
+
+func doGitPull() {
+ me.found.RillGitPull()
+}
+
+func doFix() {
+ all := me.found.SortByGoPath()
+ for all.Scan() {
+ repo := all.Next()
+ if !repo.IsValid() {
+ log.Printf("%10s %-50s", "old?\n", repo.GetGoPath())
+ continue
+ }
+ log.Printf("running on: %-50s\n", repo.GetGoPath())
+ cmd := []string{"ls"}
+ repo.Run(cmd)
+ }
+}