From 43385fcb43311a921e048f02db92a19d229f3d11 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 28 Nov 2024 23:24:58 -0600 Subject: closer. only show writable so I can fix the GUI --- init.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'init.go') 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() -- cgit v1.2.3