diff options
| author | Jeff Carr <[email protected]> | 2024-11-28 23:24:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-28 23:24:58 -0600 |
| commit | 43385fcb43311a921e048f02db92a19d229f3d11 (patch) | |
| tree | ed2cec737bc108ab5fe5bbf52eec8843cdcaa03c /init.go | |
| parent | c32aea103ca694d64f1e37d8520149385ae27efd (diff) | |
closer. only show writable so I can fix the GUI
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -19,11 +19,17 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList { me.Enable() me.forge = f + me.viewName = "autotypist" + repos := me.forge.Repos.SortByPath() for repos.Scan() { repo := repos.Next() - log.Info("repo scan directory:", repo.FullPath) - me.AddRepo(repo) + if me.forge.IsReadOnly(repo.GoPath) { + log.Info("repo scan readonly directory:", repo.FullPath) + } else { + log.Info("repo scan writable directory:", repo.FullPath) + me.AddRepo(repo) + } } me.Enable() |
