package main import ( "os" ) func Execute() error { cmd := os.Args[1] args := os.Args[2:] if cmd == "compile" { return runCompile(args) } else if cmd == "parse" { return runParse(args) } else if cmd == "show" { return runShow(args) } else if cmd == "test" { return runTest(args) } return nil // FIXME }