def at.place

ezx@1.11.0.0 · src/ws/relock.bend:60

import ezx@1.11.0.0/src/ws/relock.bend as Relock
import Base
import ezx@1.11.0.0/src/lock/plan.bend as LP
import ezx@1.11.0.0/src/pkg/path.bend as P

60# a place a tree is laid in, taken from the root: the root's committed
61# `.ez/lib` for a committed tree, BEND_LIB as it is, and a directory under the
62# root from the root
63def at.place(+at: String, place: LP.Place) -> LP.Place:
64  match place:
65    case LP.Committed{}:
66      LP.Under{at}
67    case LP.Cache{}:
68      LP.Cache{}
69    case LP.Under{dir}:
70      LP.Under{P.join(at, dir)}

Uses (3)

Used by (1)