Added stub arfc command

This commit is contained in:
Sasha Koshka 2022-08-08 03:09:16 -04:00
parent e8f6165f38
commit e7bd6ee02c

21
arfc/main.go Normal file
View File

@ -0,0 +1,21 @@
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)
}
}