Skip to content

Commit 7cc69ac

Browse files
0xLeifclaude
andauthored
Update: make config.toml path platform-aware in docs (#460)
Docs hardcoded the Linux `~/.config/fledge/config.toml` path, but the code resolves via `dirs::config_dir()` (macOS `~/Library/Application Support/fledge/`, Windows `%APPDATA%\fledge\`, Linux `~/.config/fledge/`). Clarify the most prominent occurrences using SECURITY.md's File Locations wording: - cli-reference.md `fledge config` section: full platform mapping plus a pointer to `fledge config path` and the Configuration page - cli-reference.md `ai use`: no longer hardcodes the Linux path - doctor.md `fledge config` check: brief platform-aware note The canonical Configuration and Plugins pages already carry the full platform table; passing cross-references and code-block comments are left as-is. Claude-Session: https://claude.ai/code/session_016AvsKakjAc3EKN2ztcMfYi Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 2592bc8 commit 7cc69ac

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

site/src/content/docs/reference/cli-reference.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ fledge ai <status|models|use> [OPTIONS]
345345

346346
- `status [--json]`: Show active provider, model, and host with a `(from env / config / default)` source tag on each value
347347
- `models --provider {ollama,anthropic,openai,...} [--search <q>] [--json]`: Model list (Ollama hits `/api/tags`; Anthropic returns curated ids; OpenAI-compatible gateways aren't enumerable)
348-
- `use [provider] [model]`: Interactive picker (live model list for Ollama) or fully scriptable via positional args. Writes to `~/.config/fledge/config.toml`
348+
- `use [provider] [model]`: Interactive picker (live model list for Ollama) or fully scriptable via positional args. Writes to the global `config.toml` (platform config dir; see [Configuration](./configuration.md))
349349

350350
```bash
351351
fledge ai status # who's active and why
@@ -677,7 +677,11 @@ fledge plugins audit --json # machine-readable audit
677677

678678
### fledge config `<action>`
679679

680-
Manage `~/.config/fledge/config.toml`.
680+
Manage the global `config.toml`. Its location follows the platform config
681+
directory (`dirs::config_dir()`): `~/Library/Application Support/fledge/config.toml`
682+
on macOS, `~/.config/fledge/config.toml` on Linux, `%APPDATA%\fledge\config.toml`
683+
on Windows. Run `fledge config path` to print the resolved location, or see
684+
[Configuration](./configuration.md).
681685

682686
```text
683687
fledge config <get|set|unset|add|remove|edit|list|path|init>

site/src/content/docs/reference/doctor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Doctor reports four sections:
2020

2121
### `fledge`
2222

23-
- `fledge config`. Does `~/.config/fledge/config.toml` parse cleanly?
23+
- `fledge config`. Does the global `config.toml` parse cleanly? (Its path follows the platform config dir; see [Configuration](./configuration.md).)
2424

2525
### `Git`
2626

0 commit comments

Comments
 (0)