Plan.tree.read: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/fetch/plan.bend as Plan Lines 90-99 of ezx@1.11.0.0/src/fetch/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/fetch/plan.bend&start_line=90&end_line=99 import Base import ezx@1.11.0.0/src/lock/world.bend as W import ezx@1.11.0.0/src/lock/lock.bend as L # a manifest and the texts of the files it names, as a tree: what is under # BEND_LIB, or what the hub served def tree.read(answer: W.Answer) -> Tree: match answer: case W.Got{_how, manifest, ss}: Tree{"", zip(L.manifest.files(String.lines(manifest)), ss)} case W.Miss{why}: Gone{why} case _: Gone{"ez: a tree was not answered with one"} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.lines https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/fetch/plan.bend&name=Tree https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/fetch/plan.bend&name=zip https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=manifest.files https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=Answer