def decide.kept

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

import ezx@1.11.0.0/src/pub/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/pub/world.bend as PW

1137# every file of the package tracked, or the first that is not refused
1138def decide.kept(kept: Kept, +world: PW.World) -> Verdict:
1139  match kept:
1140    case Kept{}:
1141      decide.lock(any(nvs(world)), PW.heard(world, PW.Lock{}), world)
1142    case Stray{path}:
1143      Stop{why.stray(path)}
1144    case KeptWait{}:
1145      Pending{[PW.Tracked{}]}
1146    case KeptNo{why}:
1147      Stop{why}

Uses (10)

Used by (1)