def edits.put

ezx@1.11.0.0 · src/ws/up.bend:349

import ezx@1.11.0.0/src/ws/up.bend as Up
import Base
import ezx@1.11.0.0/src/lock/plan.bend as LP

349# the files an upgrade rewrites, written ahead of the plan, unless it refuses
350def edits.put(refuses: Bool, eds: List<&2, LP.Effect>, pl: LP.Plan) -> LP.Plan:
351  match refuses:
352    case True{}:
353      pl
354    case False{}:
355      LP.Plan{es, outcome} = pl
356      LP.Plan{List.append(&2, LP.Effect, eds, es), outcome}

Uses (5)

Used by (1)