MCPcopy Create free account
hub / github.com/GCWing/BitFun / apply_command_menu_selection

Method apply_command_menu_selection

src/apps/cli/src/ui/chat/input.rs:84–89  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

82 }
83
84 pub fn apply_command_menu_selection(&mut self) -> Option<String> {
85 let cmd = self.command_menu.apply_selection()?;
86 self.text_input.clear();
87 self.refresh_command_menu();
88 Some(cmd)
89 }
90
91 pub fn history_prev(&mut self) {
92 if self.input_history.is_empty() {

Callers 1

handle_key_eventMethod · 0.80

Calls 3

apply_selectionMethod · 0.80
clearMethod · 0.45
refresh_command_menuMethod · 0.45

Tested by

no test coverage detected