def outcome.of
import ezx@1.11.0.0/src/doctor/plan.bend as Planimport Base
import ezx@1.11.0.0/src/lock/plan.bend as P
857# a problem must fail the command, or a script around it learns nothing. The
858# lines already said what the problem is.
859def outcome.of(bad: Bool) -> P.Outcome:
860 match bad:
861 case True{}:
862 P.Refused{""}
863 case False{}:
864 P.Success{}