vise/dev/gendata/main.go
2023-04-12 18:20:45 +01:00

22 lines
280 B
Go

package main
import (
"fmt"
"os"
"git.defalsify.org/festive/testdata"
)
func main() {
var err error
if len(os.Args) > 1 {
err = testdata.GenerateTo(os.Args[1])
} else {
_, err = testdata.Generate()
}
if err != nil {
os.Exit(1)
}
fmt.Println(testdata.DataDir)
}