def lib.within
import ezx@1.11.0.0/src/ws/hop.bend as Hopimport Base
import ezx@1.11.0.0/src/pkg/path.bend as P
import ezx@1.11.0.0/src/ws/workspace.bend as W
61# the root a member found, once it is known whether that is where ez runs
62def lib.within(+top: String, root: List<&2, String>, rel: List<&2, String>) -> Lib:
63 match rel:
64 case []:
65 Keep{}
66 case _hd <> _tl:
67 Set{P.join(P.join(top, W.segs.text(root)), ".ez/lib")}