Cmd.build.go: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ez/cmd.bend as Cmd Lines 88-102 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=88&end_line=102 import Base import ezx@1.11.0.0/src/share/env.bend as Env import ezx@1.11.0.0/src/share/exec.bend as Exec import ezx@1.11.0.0/src/share/cap.bend as Cap import ezx@1.11.0.0/src/ez/start.bend as S # a native binary, named after the package (`S.build.out`), once the # directory it lands in is there. This is the one command that reaches bend's # C backend, so it is the one that runs under the memory cap. def build.go(start: S.Start, +out: String) -> IO(Unit): match start: case S.Refused{why}: refused(why) case S.Starts{line}: do IO: Exec.make(Env.dirs("build", out)) +cap : Bool <- Cap.ok() Cap.warn(cap) +g : String <- Cap.gb() +bin : String <- Cap.run(cap, line) report.capped(Cap.why(bin, g), bin) Uses (15): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=String 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/cmd.bend&name=refused https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/cmd.bend&name=report.capped https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/start.bend&name=Start https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/cap.bend&name=gb https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/cap.bend&name=ok https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/cap.bend&name=run https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/cap.bend&name=warn https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/cap.bend&name=why https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/env.bend&name=dirs https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/exec.bend&name=make