From dfc28a04d637d9af6eef8bde9b65952b99b15465 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 17 Feb 2024 08:38:44 -0600 Subject: refactor to use repolist package --- docs.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs.go') 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, ")") -- cgit v1.2.3