summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
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()