def added.k

ezx@1.11.0.0 · src/add/plan.bend:453

import ezx@1.11.0.0/src/add/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/add/world.bend as A
import ezx@1.11.0.0/src/ledger/manifest.bend as M
import ezx@1.11.0.0/src/pkg/pkg.bend as K

453# the dependency the plan records: the one `dep.of` makes from the walk, or
454# an empty one when the walk made none, which no plan writes
455def added.k(walk: K.Walked, +world: A.World) -> M.Dep:
456  match walk:
457    case K.Walked{h, root, _fs, _ss}:
458      dep.of(h, root, world)
459    case K.Asks{_at}:
460      M.Dep{"", "", "", M.Hub{""}}
461    case K.Refused{_why}:
462      M.Dep{"", "", "", M.Hub{""}}

Uses (5)

Used by (1)