def probe.ask
import ezx@1.11.0.0/src/doctor/run.bend as Runimport Base
import snap@1.4.0.0/main.bend as R
import ezx@1.11.0.0/src/run/bend.bend as Bend
29# how a program is asked for its version, once it is known whether this is
30# bend. Everything else answers the flag.
31def probe.ask(is_bend: Bool, name: String) -> IO(String):
32 match is_bend:
33 case True{}:
34 Bend.version()
35 case False{}:
36 R.exec([name, "--version"])