def sync.outcome

ezx@1.11.0.0 · src/tool/plan.bend:1173

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

1173# how a sync ends once every install it runs has ended: 1 with the reason
1174# when it refused, and 0 when it did not (EZ-OUT-1). An install that refuses
1175# ends the sync there, with its own status.
1176def sync.outcome(synced: Sync) -> P.Outcome:
1177  match synced:
1178    case Sync{_ns}:
1179      P.Success{}
1180    case SyncNo{why}:
1181      P.Refused{why}

Uses (2)

Used by (1)