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

Method render

crates/opencode-tui/src/components/home.rs:67–71  ·  view source on GitHub ↗
(&self, frame: &mut Frame, area: Rect)

Source from the content-addressed store, hash-verified

65 }
66
67 pub fn render(&self, frame: &mut Frame, area: Rect) {
68 let prompt = Prompt::new(self.context.clone())
69 .with_placeholder("Ask anything... \"Fix a TODO in the codebase\"");
70 self.render_with_prompt(frame, area, &prompt);
71 }
72
73 pub fn render_with_prompt(&self, frame: &mut Frame, area: Rect, prompt: &Prompt) {
74 let area = Rect {

Callers 1

render_with_promptMethod · 0.45

Calls 4

newFunction · 0.85
with_placeholderMethod · 0.80
render_with_promptMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected