This repository has been archived on 2022-08-29. You can view files and clone it, but cannot push or open issues or pull requests.
arf/arfc/main.go
2022-08-08 03:09:16 -04:00

22 lines
386 B
Go

package arfc
import "os"
import "fmt"
import "github.com/sashakoshka/arf"
func main () {
if len(os.Args) != 2 {
fmt.Println("XXX please specify module path and output path")
}
inPath := os.Args[0]
outPath := os.Args[1]
file := os.OpenFile(outPath, os.WRONLY | os.CREATE, 0655)
err := arf.CompileModule(inPath, outFile)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}