pls
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
@@ -22,12 +23,15 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
// Get File
|
||||
filePath := os.Args[1]
|
||||
// Create Runtime
|
||||
rt, err := runtime.New(context.Background())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// Run File
|
||||
rt := runtime.New()
|
||||
filePath := os.Args[1]
|
||||
if err := rt.RunFile(filePath, os.Stdout, os.Stderr); err != nil {
|
||||
os.Exit(1)
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user