Return the XDG config directory for opencode (e.g. `~/.config/opencode`).
()
| 56 | |
| 57 | /// Return the XDG config directory for opencode (e.g. `~/.config/opencode`). |
| 58 | fn global_config_dir() -> Option<PathBuf> { |
| 59 | dirs::config_dir().map(|d| d.join("opencode")) |
| 60 | } |
| 61 | |
| 62 | /// Build the list of global instruction file paths to probe. |
| 63 | fn global_files() -> Vec<PathBuf> { |