Dump.ent.read: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/sha/dump.bend as Dump Lines 69-86 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=69&end_line=86 import Base import ezx@1.11.0.0/src/sha/nar.bend as Nar # a regular file's text read, or anything else as the listing gave it def ent.read( file: Bool, +kind: String, +mode: String, +name: String, +at: String, +target: String, +path: String ) -> IO(Nar.Ent): match file: case True{}: do IO: body : String <- file.of(path) return Nar.Ent{kind, Nar.owner.exec(mode), name, at, body} case False{}: ent.other(Bool.or(String.eq(kind, "d"), String.eq(kind, "l")), kind, name, at, target, path) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.or 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=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/dump.bend&name=ent.other https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/dump.bend&name=file.of 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=owner.exec