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

Method new

crates/opencode-tui/src/components/dialogs/fork.rs:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26impl ForkDialog {
27 pub fn new() -> Self {
28 Self {
29 entries: Vec::new(),
30 state: ListState::default(),
31 session_id: None,
32 open: false,
33 }
34 }
35
36 pub fn open(&mut self, session_id: String, entries: Vec<ForkEntry>) {
37 self.session_id = Some(session_id);

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected