Dump.dump: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/sha/dump.bend as Dump Lines 112-118 of ezx@1.11.0.0/src/sha/dump.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/sha/dump.bend&start_line=112&end_line=118 import Base import snap@1.4.0.0/main.bend as R import ezx@1.11.0.0/src/sha/nar.bend as Nar # the NAR serial of one path def dump(+path: String) -> IO(String): do IO: +out : String <- R.exec(Nar.listing.argv(path)) text : String <- said(R.ok(out), path ++ ": ", printed(out)) es : List<&2, Nar.Ent> <- ents(path, Nar.rows(Nar.cut(text))) built(Nar.tree(es), path) Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/dump.bend&name=built https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/dump.bend&name=ents https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/dump.bend&name=printed https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/dump.bend&name=said https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=Ent https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=cut https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=listing.argv https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=rows https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=tree https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=exec https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=ok