def bendcheck.exec
import bolt@1.27.0.0/src/lsp/checker/bend.bend as Bendimport Base
14# how `bend <path> <flag>` went, one tag char, then everything it printed.
15# The flag is argv.bend's, `--check-only`: it checks, and never runs main.
16# The tag is `r` when bend ran and exited, `s` when a signal killed it, and
17# `x` when it could not be run: no pipe, no fork, or an exit with 127, the
18# code a failed exec exits with (as a shell does for a command it cannot
19# find)
20def bendcheck.exec(path: String, flag: String) -> IO(String):
21 import "./exec.c"
22 import "./exec.js"