(input: string)
| 14 | } |
| 15 | |
| 16 | export function getModeFromInput(input: string): HistoryMode { |
| 17 | if (input.startsWith('!')) { |
| 18 | return 'bash' |
| 19 | } |
| 20 | return 'prompt' |
| 21 | } |
| 22 | |
| 23 | export function getValueFromInput(input: string): string { |
| 24 | const mode = getModeFromInput(input) |
no outgoing calls
no test coverage detected