def dirs

ezx@1.11.0.0 · src/share/env.bend:36

import ezx@1.11.0.0/src/share/env.bend as Env
import Base

36# the directories bend writes into for a command and does not make itself:
37# `.ez` for `ez check`'s JS, and `bin` for `ez build`'s default output. They
38# are made just before bend starts, so a check or build that is refused makes
39# none. Every other command makes what it writes into when it writes, and
40# `ez help`, `doctor` and the rest write nothing here, so they leave a
41# directory as they found it.
42def dirs(+cmd: String, +out: String) -> List<&2, String>:
43  Bool.pick(List<&2, String>, String.eq(cmd, "check"), [".ez"],
44    dirs.build(String.eq(cmd, "build"), String.is_empty(out)))

Uses (6)

Used by (2)