This repository has been archived on 2024-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
arf/arfc/main.go

22 lines
386 B
Go
Raw Normal View History

2022-08-08 01:09:16 -06:00
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)
}
}