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

Method mode

crates/opencode-tui/src/components/prompt.rs:557–559  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

555 }
556
557 pub fn mode(&self) -> PromptMode {
558 self.mode
559 }
560
561 pub fn is_shell_mode(&self) -> bool {
562 matches!(self.mode, PromptMode::Shell)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected