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

Method all_commands

crates/opencode-tui/src/command.rs:535–541  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

533 }
534
535 pub fn all_commands(&self) -> Vec<&SlashCommand> {
536 let mut seen = std::collections::HashSet::new();
537 self.commands
538 .values()
539 .filter(|cmd| seen.insert(cmd.name.clone()))
540 .collect()
541 }
542
543 pub fn suggested_commands(&self) -> Vec<&SlashCommand> {
544 self.all_commands()

Callers 1

suggested_commandsMethod · 0.80

Calls 3

newFunction · 0.85
filterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected