summaryrefslogtreecommitdiff
path: root/doCommon.go
blob: db5a0a0a5b71f54c87f982f981b22381bb9ed388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)
	}
}