summaryrefslogtreecommitdiff
path: root/readWorkFile.go
diff options
context:
space:
mode:
Diffstat (limited to 'readWorkFile.go')
-rw-r--r--readWorkFile.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/readWorkFile.go b/readWorkFile.go
index 87e31fe..e11ad90 100644
--- a/readWorkFile.go
+++ b/readWorkFile.go
@@ -5,9 +5,16 @@ import (
"os"
"strings"
+ "go.wit.com/lib/gui/shell"
"go.wit.com/log"
)
+func addDir(d string) {
+ if shell.IsDir(d) {
+ rv.NewRepo(d)
+ }
+}
+
func readControlFile() error {
file, err := os.Open("go.work")
if err != nil {
@@ -29,6 +36,7 @@ func readControlFile() error {
continue
}
log.Info(line)
+ addDir(line)
}
if err := scanner.Err(); err != nil {