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

Method close

crates/opencode-tui/src/components/question.rs:69–75  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

67 }
68
69 pub fn close(&mut self) {
70 self.current_question = None;
71 self.is_open = false;
72 self.selected_index = 0;
73 self.selected_options.clear();
74 self.text_input.clear();
75 }
76
77 pub fn move_up(&mut self) {
78 if self.selected_index > 0 {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected