diff options
| author | Jeff Carr <[email protected]> | 2024-02-17 08:38:44 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-17 08:38:44 -0600 |
| commit | dfc28a04d637d9af6eef8bde9b65952b99b15465 (patch) | |
| tree | 9bc0d9080e1633b4d0af16731f263eecf40faa05 /docs.go | |
| parent | 9cce297abf9ac75bcb467602ceae16b67c80ef25 (diff) | |
refactor to use repolist package
Diffstat (limited to 'docs.go')
| -rw-r--r-- | docs.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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, ")") |
