Expand description
Configuration and authentication for the ROMM client.
This module is deliberately independent of any particular frontend:
both the TUI and the command-line subcommands share the same Config
and AuthConfig types.
§Environment file precedence
Call load_layered_env before reading config:
- Variables already set in the process environment (highest priority).
- Project
.envin the current working directory (viadotenvy). - User config:
{config_dir}/romm-cli/.env— fills keys not already set (so a repo.envwins over user defaults). - OS keyring — secrets stored by
romm-cli init(lowest priority fallback).
Structs§
Enums§
Functions§
- keyring_
store - Store a secret in the OS keyring under the
romm-cliservice name. - load_
config - load_
layered_ env - Load env vars from
./.envin cwd, then from the user config file. Later files only set variables not already set (env or earlier file), so a project.envoverrides the same keys in the user file. - normalize_
romm_ origin - RomM site URL: the same origin you use in the browser (scheme, host, optional port).
- openapi_
cache_ path - Where the OpenAPI spec is cached (
.../romm-cli/openapi.json). - persist_
user_ config - Write user-level
romm-cli/.envand store secrets in the OS keyring when possible (same layout as interactiveromm-cli init). - user_
config_ dir - Directory for user-level config (
romm-cliunder the OS config dir). - user_
config_ env_ path - Path to the user-level
.envfile (.../romm-cli/.env).