def pkg.from
import ezx@1.11.0.0/src/pkg/pkg.bend as Pkgimport Base
1389# an entry named from the working directory is walked over the working
1390# directory, and one named from the root over the whole file system
1391def pkg.from(abs: Bool, +entry: String) -> IO(Pkg):
1392 match abs:
1393 case True{}:
1394 walk.io("/", String.drop(entry, 1n))
1395 case False{}:
1396 walk.io("", entry)