22 lines
280 B
Go
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)
|
|
}
|