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

Method selected_item

src/apps/cli/src/ui/command_menu.rs:226–229  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

224 }
225
226 fn selected_item(&self) -> Option<&CommandSpec> {
227 let idx = self.list_state.selected().unwrap_or(0);
228 self.items.get(idx).copied()
229 }
230
231 fn suppress(&mut self) {
232 self.visible = false;

Callers 1

apply_selectionMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected