summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-28 23:24:58 -0600
committerJeff Carr <[email protected]>2024-11-28 23:24:58 -0600
commit43385fcb43311a921e048f02db92a19d229f3d11 (patch)
treeed2cec737bc108ab5fe5bbf52eec8843cdcaa03c /init.go
parentc32aea103ca694d64f1e37d8520149385ae27efd (diff)
closer. only show writable so I can fix the GUI
Diffstat (limited to 'init.go')
-rw-r--r--init.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/init.go b/init.go
index 7ec3cb5..5237713 100644
--- a/init.go
+++ b/init.go
@@ -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()