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

22 lines
394 B
Go

package arfc
import "os"
import "fmt"
import "git.tebibyte.media/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)
}
}