Env.dirs: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/share/env.bend as Env Lines 36-44 of ezx@1.11.0.0/src/share/env.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/share/env.bend&start_line=36&end_line=44 import Base # the directories bend writes into for a command and does not make itself: # `.ez` for `ez check`'s JS, and `bin` for `ez build`'s default output. They # are made just before bend starts, so a check or build that is refused makes # none. Every other command makes what it writes into when it writes, and # `ez help`, `doctor` and the rest write nothing here, so they leave a # directory as they found it. def dirs(+cmd: String, +out: String) -> List<&2, String>: Bool.pick(List<&2, String>, String.eq(cmd, "check"), [".ez"], dirs.build(String.eq(cmd, "build"), String.is_empty(out))) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick 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.eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.is_empty https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/share/env.bend&name=dirs.build