diff options
| author | Jeff Carr <[email protected]> | 2024-12-05 14:17:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-05 14:17:50 -0600 |
| commit | 1d352604b9a88e59284d9b1d6a46019c31816247 (patch) | |
| tree | 1a6234cf265df832a6d1cf66b113080c0f57fcfd /doCommon.go | |
| parent | 816760d1372d6d1922a9916f3150e49f3fd562cd (diff) | |
Diffstat (limited to 'doCommon.go')
| -rw-r--r-- | doCommon.go | 25 |
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) + } +} |
