Cmd.report.capped: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/cmd.bend as Cmd Lines 39-48 of ezx@1.11.0.0/src/ez/cmd.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ez/cmd.bend&start_line=39&end_line=48 import Base import snap@1.4.0.0/main.bend as R import ezx@1.11.0.0/src/lock/run.bend as Run import ezx@1.11.0.0/src/ez/ends.bend as E # a build's output, printed with a word in front of it for a run the kernel # ended rather than the program, and the command ended on it (`E.ran`): a # failed build must fail the command, or a script around it learns nothing. # bend prints that all terms check before it emits any C, so a build killed at # the cap is otherwise indistinguishable from one that worked and wrote # nothing. def report.capped(+why: String, +out: String) -> IO(Unit): do IO: IO.write(why ++ R.text(out)) Run.end(E.ran(out)) Uses (9): 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=IO.write https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/ends.bend&name=ran https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=end https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=text