go-vise

Constrained Size Output Virtual Machine
Info | Log | Files | Refs | README | LICENSE

main.go (281B)


      1 package main
      2 
      3 import (
      4 	"fmt"
      5 	"os"
      6 
      7 	"git.defalsify.org/vise.git/testdata"
      8 )
      9 
     10 func main() {
     11 	var err error
     12 	if len(os.Args) > 1 {
     13 		err = testdata.GenerateTo(os.Args[1])
     14 	} else {
     15 		_, err = testdata.Generate()
     16 	}
     17 	if err != nil {
     18 		os.Exit(1)
     19 	}
     20 	fmt.Println(testdata.DataDir)
     21 }