Skip to main content

Module paths

Module paths 

Source
Expand description

Filesystem locations used by the CLI and the registry client.

All paths are derived from the XDG_* / HOME environment so the behaviour matches TODO.roadmap/07-cli-tools.md (Configuration section) on POSIX systems:

  • config: ~/.config/confium/
  • plugins: ~/.local/share/confium/plugins/

Each helper accepts an optional override root so tests can point the CLI at a temp directory without touching the real home. When the override is None the function falls back to the environment-derived path.

Functionsยง

config_dir
The base config directory, honouring XDG_CONFIG_HOME then $HOME.
config_file
The main config file (<config>/config.toml).
plugin_install_dir
Where a single installed plugin artifact lives: <plugins>/<name>-<version>.so.
plugins_dir
The base data directory for installed plugins.
trust_dir
The trust-store directory (<config>/trust).