def status

ezx@1.11.0.0 · src/lock/plan.bend:740

import ezx@1.11.0.0/src/lock/plan.bend as Plan
import Base

740# the status a command exits with (EZ-OUT-1): 0 when it succeeds, 1 when it
741# refuses. Every planner's plan ends with an Outcome, and the interpreter
742# exits with this status of it (`Run.end`), so this is the one place the
743# mapping lives.
744def status(outcome: Outcome) -> U32:
745  match outcome:
746    case Success{}:
747      0
748    case Refused{_why}:
749      1

Uses (2)

Used by (2)