def walk.io

ezx@1.11.0.0 · src/pkg/pkg.bend:1378

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base
import ezx@1.11.0.0/src/pkg/path.bend as P

1378# the package an entry would be published as, walked over its checkout: the
1379# entry and every file the walk reaches are paths from `top`, read from disk
1380# as the walk asks for them. An import that climbs above `top` is refused.
1381def walk.io(+top: String, +entry: String) -> IO(Pkg):
1382  pkg.ask(asks(), top, entry, P.base(entry), Tree{False{}, [], []},
1383    start(entry))

Uses (10)

Used by (2)