runPath executes code from a file
(ctx context.Context, path string)
| 314 | |
| 315 | // runPath executes code from a file |
| 316 | func (h *shellCallHandler) runPath(ctx context.Context, path string) error { |
| 317 | f, err := os.Open(path) |
| 318 | if err != nil { |
| 319 | return err |
| 320 | } |
| 321 | defer f.Close() |
| 322 | h.runner.Reset() |
| 323 | return h.run(ctx, f, path) |
| 324 | } |
| 325 | |
| 326 | // runInteractive executes the runner on a REPL (Read-Eval-Print Loop) |
| 327 | func (h *shellCallHandler) runInteractive(ctx context.Context) error { |