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

Method new

crates/opencode-tui/src/router.rs:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34impl Router {
35 pub fn new() -> Self {
36 Self {
37 history: vec![Route::Home],
38 current: Route::Home,
39 }
40 }
41
42 pub fn current(&self) -> &Route {
43 &self.current

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected