vise/dev/gendata/main.go

22 lines
277 B
Go
Raw Normal View History

2023-04-02 10:07:53 +02:00
package main
import (
"fmt"
"os"
2023-04-14 10:59:37 +02:00
"git.defalsify.org/vise/testdata"
2023-04-02 10:07:53 +02:00
)
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)
}