Files
subcoding/grow/main.go

27 lines
382 B
Go
Raw Normal View History

2021-11-20 18:51:19 -10:00
package main
import "flag"
import "log"
import "os"
func main() {
defPath := flag.String("def-path", "", "path to definition YAML file")
flag.Parse()
if *defPath == "" {
log.Fatal("Please specify --def-path")
}
defFile, err := os.Open(*defPath)
if err != nil {
log.Fatal(err)
}
def, err := NewDefinition(defFile)
2021-11-20 18:51:19 -10:00
if err != nil {
log.Fatal(err)
}
def.Grow()
2021-11-20 18:51:19 -10:00
}