Plan.top.of: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/tool/plan.bend as Plan Lines 333-341 of ezx@1.11.0.0/src/tool/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/tool/plan.bend&start_line=333&end_line=341 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 # the checkout: under the cache for a remote, the path itself for a path def top.of(pl: Tgt.Place, +world: TW.World) -> String: match pl: case Tgt.Bad{_why}: "" case Tgt.Local{p}: loc.abs(loc(p, world)) case Tgt.Remote{_url, _slug}: revdir(world) ++ "/src" Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ez/target.bend&name=Place https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/plan.bend&name=loc https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/plan.bend&name=loc.abs https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/plan.bend&name=revdir https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/tool/world.bend&name=World