Expand description
Harmont-specific directory resolution.
Every directory accessor in this module returns an hm-namespaced path
under an XDG-correct root: configuration in ~/.config/hm/, regenerable
cache in ~/.cache/hm/. Raw platform primitives (home_dir, config_dir,
cache_dir) live in os::dirs and are not re-exported — callers
outside hm-util should never need them.
Functions§
- find_
project_ root - Walk up from
startlooking for a directory containing.hm/. Returns the project root (the directory containing.hm/), orNoneif the filesystem root is reached without finding one. - hm_
cache_ dir ~/.cache/hm/— local build cache root (regenerable).- hm_
config_ dir ~/.config/hm/— user config root (config.toml,credentials.toml).- hm_
workspace_ cache_ dir ~/.cache/hm/workspaces/— COW workspace cache root.