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

Method new

crates/opencode-tui/src/components/slash_command.rs:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21impl SlashCommandPopup {
22 pub fn new() -> Self {
23 Self {
24 registry: CommandRegistry::new(),
25 query: String::new(),
26 filtered: Vec::new(),
27 state: ListState::default(),
28 open: false,
29 selected_action: None,
30 }
31 }
32
33 pub fn open(&mut self) {
34 self.query = String::new();

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected