Expand description
Where the CLI gets its server, key and defaults.
Precedence for the key: --api-key, then SEMORA_API_KEY (process env,
then .env in this folder or a parent), then the stored login. The server:
--server, SEMORA_URL, config.toml, then the stored default.
Structs§
- File
Config ~/.config/semora/config.toml- Flags
- Settings
Enums§
Constants§
Functions§
- config_
dir SEMORA_CONFIG_DIR, else~/.config/semora(on every platform).- load_
dotenv - Loads the first
.envfound in the current folder or its parents. Variables already set in the process win. - origin
- parse_
server - Normalizes a server URL to its origin (no path, no trailing slash).
- read_
file_ config - resolve