summaryrefslogtreecommitdiff
path: root/docs.go
diff options
context:
space:
mode:
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, ")")