Skip to main content

find_opencode_config

Function find_opencode_config 

Source
pub fn find_opencode_config(project_dir: &Path) -> Option<PathBuf>
Expand description

Locate an existing OpenCode project config. Returns the path to opencode.jsonc if present, else opencode.json if present, else None. Prefers .jsonc because a user who bothered to write a comment-annotated config is more invested in it, and sqz must not silently create a parallel .json that would leave the .jsonc looking un-updated (reported in issue #6).