summaryrefslogtreecommitdiff
path: root/docs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-17 08:38:44 -0600
committerJeff Carr <[email protected]>2024-02-17 08:38:44 -0600
commitdfc28a04d637d9af6eef8bde9b65952b99b15465 (patch)
tree9bc0d9080e1633b4d0af16731f263eecf40faa05 /docs.go
parent9cce297abf9ac75bcb467602ceae16b67c80ef25 (diff)
refactor to use repolist package
Diffstat (limited to 'docs.go')
-rw-r--r--docs.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs.go b/docs.go
index 219d4bc..f740db3 100644
--- a/docs.go
+++ b/docs.go
@@ -6,6 +6,7 @@ import (
"path/filepath"
"go.wit.com/gui"
+ "go.wit.com/lib/gui/repolist"
"go.wit.com/lib/gui/shell"
"go.wit.com/log"
)
@@ -27,12 +28,12 @@ func docsBox(vbox *gui.Node) {
fmt.Fprintln(f, "go 1.21.4")
fmt.Fprintln(f, "")
fmt.Fprintln(f, "use (")
- for _, repo := range me.allrepos {
- if repo.status.Exists("go.mod") {
+ for _, repo := range repolist.AllRepos() {
+ if repo.Exists("go.mod") {
fmt.Fprintln(f, "\t"+repo.String())
} else {
log.Info("missing go.mod for", repo.String())
- repo.status.MakeRedomod()
+ repo.MakeRedomod()
}
}
fmt.Fprintln(f, ")")