fix(opencode): add OpenCode support to skills functionality

Add missing OpenCode branch in parse_app_type() and include OpenCode
in all app iteration loops for skills operations (uninstall, scan,
import, migrate).
This commit is contained in:
Jason
2026-01-16 21:23:54 +08:00
parent e06c6176d9
commit 2cc36b3950
2 changed files with 6 additions and 4 deletions
+1
View File
@@ -20,6 +20,7 @@ fn parse_app_type(app: &str) -> Result<AppType, String> {
"claude" => Ok(AppType::Claude),
"codex" => Ok(AppType::Codex),
"gemini" => Ok(AppType::Gemini),
"opencode" => Ok(AppType::OpenCode),
_ => Err(format!("不支持的 app 类型: {app}")),
}
}