Expand description
Comindly configuration — persistent defaults for the data location and model choices.
Precedence, highest first: CLI flag → environment variable → config.toml → built-in default.
Secrets (OPENAI_API_KEY) are never read from the file; keep them in the environment.
Structs§
Enums§
- Setting
- A setting to write: a string, a flag or a number;
Removedeletes the key.
Functions§
- config_
dir - comindly’s config folder.
- config_
path $XDG_CONFIG_HOME/comindly/config.toml, else~/.config/comindly/config.toml.- data_
dir $XDG_DATA_HOME/comindly, else~/.local/share/comindly: the default index and managed clones.- default_
index_ dir - The default index location: the data folder itself.
- env
- An environment variable, if set.
- expand_
tilde - Expand a leading
~to$HOME; leave URIs (s3://…) and absolute paths untouched. - init
- Write a commented
config.tomlwith the resolved defaults. Withoutforce, errors if one already exists (the caller handles confirmation). - set_
repos - Replace the repository list in
config.toml. - ui_
token - The web UI’s access token for browsers: created once, so bookmarks keep working.
- update
- Write
changesintoconfig.toml, keeping its comments and layout.