World.cache.home: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/tool/world.bend as World Lines 155-160 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=155&end_line=160 import Base import ezx@1.11.0.0/src/pkg/path.bend as P # the cache root: `$XDG_CACHE_HOME/ez/tool`, otherwise `$HOME/.cache/ez/tool`, # taken from where ez runs when it is relative, so every path the plan names # is absolute; None when neither variable is set def cache.home(+here: String, +home: String) -> Maybe<&2, String>: Bool.pick(Maybe<&2, String>, String.is_empty(home), None{}, Some{P.anchor(here, home) ++ "/.cache/ez/tool"}) 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=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.append 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/pkg/path.bend&name=anchor