summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-17 06:36:28 -0600
committerJeff Carr <[email protected]>2024-12-17 06:36:28 -0600
commit5d232293a002cc4b5bcb949a0e329337ab4e90b4 (patch)
treee5f7422210227239f04601b6f76f9a78ca442a60 /init.go
parent1d124c7dbfdfd9bc4cb82f74b4883791c9f185b8 (diff)
lots of cleanups
Diffstat (limited to 'init.go')
-rw-r--r--init.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.go b/init.go
index 7f29701..397fb23 100644
--- a/init.go
+++ b/init.go
@@ -21,10 +21,10 @@ func Init(f *forgepb.Forge, g *gui.Node) *RepoList {
me.viewName = "autotypist"
- repos := me.forge.Repos.SortByGoPath()
+ repos := me.forge.Repos.SortByFullPath()
for repos.Scan() {
repo := repos.Next()
- if me.forge.Config.IsReadOnly(repo.GoPath) {
+ if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)
@@ -47,10 +47,10 @@ func InitBox(f *forgepb.Forge, newbox *gui.Node) *RepoList {
me.viewName = "autotypist"
- repos := me.forge.Repos.SortByGoPath()
+ repos := me.forge.Repos.SortByFullPath()
for repos.Scan() {
repo := repos.Next()
- if me.forge.Config.IsReadOnly(repo.GoPath) {
+ if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
log.Info("repo scan readonly directory:", repo.FullPath)
} else {
log.Info("repo scan writable directory:", repo.FullPath)