(positionals: string[])
| 282 | } |
| 283 | |
| 284 | function readKeyboardInput(positionals: string[]): Record<string, unknown> { |
| 285 | if (positionals.length > 1) { |
| 286 | throw new AppError('INVALID_ARGS', 'keyboard accepts at most one action argument.'); |
| 287 | } |
| 288 | return compactRecord({ action: readKeyboardAction(positionals[0]) }); |
| 289 | } |
| 290 | |
| 291 | function readClipboardInput(positionals: string[]): Record<string, unknown> { |
| 292 | const action = positionals[0]?.toLowerCase(); |
no test coverage detected
searching dependent graphs…