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

Method get

crates/opencode-command/src/lib.rs:109–111  ·  view source on GitHub ↗

Get a command by name

(&self, name: &str)

Source from the content-addressed store, hash-verified

107
108 /// Get a command by name
109 pub fn get(&self, name: &str) -> Option<&Command> {
110 self.commands.get(name)
111 }
112
113 /// List all available commands
114 pub fn list(&self) -> Vec<&Command> {

Calls

no outgoing calls