Start of code growth
This commit is contained in:
26
grow/main.go
Normal file
26
grow/main.go
Normal file
@@ -0,0 +1,26 @@
|
||||
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 := loadDefinition(defFile)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
log.Printf("%+v", def)
|
||||
}
|
||||
Reference in New Issue
Block a user