def listing.at

ezx@1.11.0.0 · src/ws/run.bend:367

import ezx@1.11.0.0/src/ws/run.bend as Run
import Base
import snap@1.4.0.0/main.bend as Sn
import ezx@1.11.0.0/src/lock/world.bend as LW

367# every `.bend` file git tracks under a directory, with its text, each path
368# from it, as `ez lock` run there lists them
369def listing.at(+dir: String) -> IO(LW.Listing):
370  do IO<LW.Listing>:
371    +out : String <- Sn.exec(["git", "-C", dir, "-c", "core.quotepath=off", "ls-files", "--", "*.bend"])
372    listing.listed(Sn.ok(out), dir, Sn.text(out))

Uses (9)

Used by (1)