diff options
| author | Jeff Carr <[email protected]> | 2024-03-07 16:45:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-03-07 16:45:49 -0600 |
| commit | 57c61847c02e9b2f3c2e36f9c77c9dcb8da01b8c (patch) | |
| tree | 029fd4b5635c09d10be5dbb4ba2eb7b1c24fda58 /readWorkFile.go | |
| parent | bf83739801829107c0245e738d6c4360b021504e (diff) | |
make a .git repo
Diffstat (limited to 'readWorkFile.go')
| -rw-r--r-- | readWorkFile.go | 8 |
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 { |
