def decide.src

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

import ezx@1.11.0.0/src/tool/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/git/git.bend as Git

1018# what the target names, or why it names nothing
1019def decide.src(found: Src, +world: TW.World) -> Verdict:
1020  match found:
1021    case Pin{+n, _u, +r, _o}:
1022      decide.pin(Git.is_rev(r), n, r, world)
1023    case Free{_pl}:
1024      decide.place(place(world), world)
1025    case NoSrc{why}:
1026      Stop{why}

Uses (7)

Used by (1)