MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / global_config_dir

Function global_config_dir

crates/opencode-session/src/instruction.rs:58–60  ·  view source on GitHub ↗

Return the XDG config directory for opencode (e.g. `~/.config/opencode`).

()

Source from the content-addressed store, hash-verified

56
57/// Return the XDG config directory for opencode (e.g. `~/.config/opencode`).
58fn 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.
63fn global_files() -> Vec<PathBuf> {

Callers 1

global_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected