pub fn get_state_dir(local: bool) -> Result<PathBuf>Expand description
Get the state directory path
All paths land under a .hack/ namespace with rs/ reserved for this
tool, leaving room for siblings (.hack/ts/, .hack/shared/, …).
Priority order:
- Environment variable HACK_STATE_DIR (treated as the
.hack/base;rsis appended) - –local-state flag (uses ./.hack/rs)
- Global default (system data directory under com.hack.hack/rs)