Bend.version: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/run/bend.bend as Bend Lines 22-28 of ezx@1.11.0.0/src/run/bend.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/run/bend.bend&start_line=22&end_line=28 import Base import snap@1.4.0.0/main.bend as R # `bend` asked which bend it is, as a run's answer: the status line, then the # banner. A bend that is not on the PATH fails both spellings, so the status # an absent bend answers with is still the one the caller sees. def version() -> IO(String): do IO: +out : String <- R.exec(["bend", "version"]) version.older(R.ok(out), out) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/run/bend.bend&name=version.older https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=exec https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=ok