def co.of

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

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

480# the checkout of a place
481def co.of(pl: Tgt.Place, +world: TW.World) -> Co:
482  match pl:
483    case Tgt.Bad{why}:
484      CoNo{"ez: " ++ why}
485    case Tgt.Local{_p}:
486      co.local(opens(world, [TW.Read{top(world) ++ "/ez.toml"},
487        TW.Read{top(world) ++ "/ez.lock.toml"}]), world)
488    case Tgt.Remote{url, _slug}:
489      co.remote(opens(world, reads(world)), url, world)

Uses (11)

Used by (1)