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

Method new

crates/opencode-tui/src/components/todo_item.rs:17–22  ·  view source on GitHub ↗
(content: &str, status: TodoStatus)

Source from the content-addressed store, hash-verified

15
16impl TodoItem {
17 pub fn new(content: &str, status: TodoStatus) -> Self {
18 Self {
19 content: content.to_string(),
20 status,
21 }
22 }
23
24 pub fn render(&self, frame: &mut Frame, area: Rect) {
25 let (icon, color) = match &self.status {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected