bladerunner/src/cmd/ubuntu-board-gen/main.go

23 lines
464 B
Go
Raw Normal View History

2023-04-12 04:21:40 +00:00
package main
import (
"flag"
"git.sr.ht/~kisom/goutils/die"
"git.wntrmute.dev/kyle/bladerunner/src/packer"
)
func main() {
var specFile, outputDir string
flag.StringVar(&specFile, "f", "ubuntu-boards.yml", "`path` to Ubuntu board spec file")
flag.StringVar(&outputDir, "o", "", "`directory` to store Ubuntu boards")
flag.Parse()
boardSpecs, err := packer.LoadUbuntuSpecs(specFile)
die.If(err)
err = boardSpecs.WriteBoards(outputDir)
die.If(err)
}