def top.of

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

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/ez/target.bend as Tgt

333# the checkout: under the cache for a remote, the path itself for a path
334def top.of(pl: Tgt.Place, +world: TW.World) -> String:
335  match pl:
336    case Tgt.Bad{_why}:
337      ""
338    case Tgt.Local{p}:
339      loc.abs(loc(p, world))
340    case Tgt.Remote{_url, _slug}:
341      revdir(world) ++ "/src"

Uses (7)

Used by (1)