(line: string)
| 50 | |
| 51 | /** Whether the shape of the line marks it as a question on its own. */ |
| 52 | export function looksLikeQuestion(line: string): boolean { |
| 53 | const trimmed = line.trim(); |
| 54 | return trimmed.endsWith('?') || trimmed.startsWith('@'); |
| 55 | } |
| 56 | |
| 57 | /** Decide what Enter does. Pure, and the only place that decides it. */ |
| 58 | export function commandIntent(state: CommandState): CommandIntent { |
no outgoing calls
no test coverage detected