[go: up one dir, main page]

Module paths

Module paths 

Source
Expand description

Centralized path management for cuenv data directories.

This module provides platform-appropriate paths following OS conventions:

PlatformState DirCache DirRuntime Dir
macOS~/Library/Application Support/cuenv~/Library/Caches/cuenv$TMPDIR
Linux~/.local/state/cuenv (XDG_STATE_HOME)~/.cache/cuenv (XDG_CACHE_HOME)/run/user/$UID (XDG_RUNTIME_DIR)
Windows%APPDATA%\cuenv%LOCALAPPDATA%\cuenv%TEMP%

All functions support environment variable overrides for testing and CI:

  • CUENV_STATE_DIR - Override state directory
  • CUENV_CACHE_DIR - Override cache directory
  • CUENV_RUNTIME_DIR - Override runtime directory

Functionsยง

approvals_file
Get the path to the approvals file.
cache_dir
Get the cache directory for cuenv.
coordinator_lock
Get the path to the coordinator lock file.
coordinator_pid
Get the path to the coordinator PID file.
coordinator_socket
Get the path to the coordinator socket.
hook_state_dir
Get the path to the hook state directory.
runtime_dir
Get the runtime directory for ephemeral cuenv data.
state_dir
Get the state directory for persistent cuenv data.
task_cache_dir
Get the path to the task cache directory.