World.bin.dir: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/tool/world.bend as World Lines 144-148 of ezx@1.11.0.0/src/tool/world.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/tool/world.bend&start_line=144&end_line=148 import Base # where an installed command is linked: `$EZ_TOOL_BIN` when it is set, # otherwise `$XDG_BIN_HOME`, otherwise `$HOME/.local/bin`, an empty value # counting as unset; None when all three are empty (EZ-TOOL-1) def bin.dir(+ez: String, +xdg: String, +home: String) -> Maybe<&2, String>: Bool.pick(Maybe<&2, String>, String.is_empty(ez), bin.xdg(xdg, home), Some{ez}) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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/tool/world.bend&name=bin.xdg