def bin.dir

ezx@1.11.0.0 · src/tool/world.bend:144

import ezx@1.11.0.0/src/tool/world.bend as World
import Base

144# where an installed command is linked: `$EZ_TOOL_BIN` when it is set,
145# otherwise `$XDG_BIN_HOME`, otherwise `$HOME/.local/bin`, an empty value
146# counting as unset; None when all three are empty (EZ-TOOL-1)
147def bin.dir(+ez: String, +xdg: String, +home: String) -> Maybe<&2, String>:
148  Bool.pick(Maybe<&2, String>, String.is_empty(ez), bin.xdg(xdg, home), Some{ez})

Uses (5)

Used by (1)