MCPcopy Index your code
hub / github.com/anomalyco/opencode / isExitCommand

Function isExitCommand

packages/opencode/src/cli/cmd/run/prompt.shared.ts:46–49  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

44}
45
46export function isExitCommand(input: string): boolean {
47 const text = input.trim().toLowerCase()
48 return text === "/exit" || text === "/quit" || text === ":q"
49}
50
51export function isNewCommand(input: string): boolean {
52 return input.trim().toLowerCase() === "/new"

Callers 3

submitPromptFunction · 0.90
submitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected