def decide.walk

ezx@1.11.0.0 · src/pub/plan.bend:1149

import ezx@1.11.0.0/src/pub/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/tool/world.bend as TW
import ezx@1.11.0.0/src/pkg/pkg.bend as K
import ezx@1.11.0.0/src/pub/world.bend as PW

1149# the walk: a package, a file it asks for, or why there is none
1150def decide.walk(got: K.Walked, +world: PW.World) -> Verdict:
1151  match got:
1152    case K.Walked{_h, _root, _fs, _sums}:
1153      decide.kept(stray(world), world)
1154    case K.Asks{at}:
1155      Pending{[PW.Tool{TW.Read{at}}]}
1156    case K.Refused{why}:
1157      Stop{why}

Uses (8)

Used by (1)