From 57c61847c02e9b2f3c2e36f9c77c9dcb8da01b8c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 7 Mar 2024 16:45:49 -0600 Subject: make a .git repo --- readWorkFile.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'readWorkFile.go') 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 { -- cgit v1.2.3