Skip to main content

update_opencode_config

Function update_opencode_config 

Source
pub fn update_opencode_config(project_dir: &Path) -> Result<bool>
Expand description

Update the project’s opencode.json to reference the sqz plugin.

If opencode.json exists, adds "sqz" to the "plugin" array. If it doesn’t exist, creates a minimal config with the plugin reference.

Returns true if the config was created/updated, false if sqz was already listed.