vise/go/dev/testdata/generate_testdata.go

22 lines
280 B
Go
Raw Normal View History

2023-04-02 10:07:53 +02:00
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)
}