()
| 8 | ) |
| 9 | |
| 10 | func main() { |
| 11 | if len(os.Args) <= 1 { |
| 12 | log.Println("Usage: testcli script.php") |
| 13 | os.Exit(1) |
| 14 | } |
| 15 | |
| 16 | if len(os.Args) == 3 && os.Args[1] == "-r" { |
| 17 | os.Exit(frankenphp.ExecutePHPCode(os.Args[2])) |
| 18 | } |
| 19 | |
| 20 | os.Exit(frankenphp.ExecuteScriptCLI(os.Args[1], os.Args)) |
| 21 | } |
nothing calls this directly
no test coverage detected