def command.of

ezx@1.11.0.0 · src/add/plan.bend:772

import ezx@1.11.0.0/src/add/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/add/world.bend as A
import ezx@1.11.0.0/src/add/hub.bend as H
import ezx@1.11.0.0/src/lock/plan.bend as P

772# the plan `ez add` runs, once it is known whether the target is a name
773def command.of(named: Bool, +world: A.World) -> P.Plan:
774  match named:
775    case True{}:
776      H.plan(world)
777    case False{}:
778      plan(world)

Uses (5)

Used by (1)