add mgconfig conversion to lib

This commit is contained in:
2023-05-25 15:07:06 -07:00
parent 93a21b8c61
commit 9a4f8023d8
4 changed files with 77 additions and 0 deletions

17
cmd/paths/mrpaths.go Normal file
View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"github.com/taigrr/mg/parse"
)
func main() {
mrconf, err := parse.LoadMRConfig()
if err != nil {
panic(err)
}
for _, path := range mrconf.GetRepoPaths() {
fmt.Println(path)
}
}