def dump

ezx@1.11.0.0 · src/sha/dump.bend:112

import ezx@1.11.0.0/src/sha/dump.bend as Dump
import Base
import snap@1.4.0.0/main.bend as R
import ezx@1.11.0.0/src/sha/nar.bend as Nar

112# the NAR serial of one path
113def dump(+path: String) -> IO(String):
114  do IO<String>:
115    +out : String <- R.exec(Nar.listing.argv(path))
116    text : String <- said(R.ok(out), path ++ ": ", printed(out))
117    es : List<&2, Nar.Ent> <- ents(path, Nar.rows(Nar.cut(text)))
118    built(Nar.tree(es), path)

Uses (16)

Used by (1)