2023-04-12 04:21:40 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"flag"
|
|
|
|
|
|
|
|
"git.sr.ht/~kisom/goutils/die"
|
2023-04-12 05:15:34 +00:00
|
|
|
packer "git.wntrmute.dev/kyle/bladerunner/packer/packerlib"
|
2023-04-12 04:21:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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)
|
|
|
|
}
|