MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / list

Method list

crates/opencode-plugin/src/lib.rs:214–225  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

212 }
213
214 pub async fn list(&self) -> Vec<(HookEvent, String, bool)> {
215 let hooks = self.hooks.read().await;
216 let mut result = Vec::new();
217
218 for (event, hook_list) in hooks.iter() {
219 for hook in hook_list {
220 result.push((event.clone(), hook.name.clone(), hook.enabled));
221 }
222 }
223
224 result
225 }
226}
227
228impl Default for PluginSystem {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
readMethod · 0.80
cloneMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected