Plan.code: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/tool/plan.bend as Plan Lines 1321-1332 of ezx@1.11.0.0/src/tool/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/tool/plan.bend&start_line=1321&end_line=1332 import Base # the status a tool command exits with, given the status the program it # started exited with (EZ-OUT-1): 1 for a refusal, 0 for a command that # ends without starting one, and the program's own status for `ez tool run`. # A command that starts nothing is handed 0 for it. def code(ended: Exit, program: U32) -> U32: match ended: case Refusal{}: 1 case Finished{}: 0 case Exits{_b, _as}: program Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/plan.bend&name=Exit