( interactor: Interactor, positionals: string[], )
| 69 | } |
| 70 | |
| 71 | export async function handleFocusCommand( |
| 72 | interactor: Interactor, |
| 73 | positionals: string[], |
| 74 | ): Promise<Record<string, unknown>> { |
| 75 | const { x, y } = readPoint(positionals, 'focus requires x y'); |
| 76 | await interactor.focus(x, y); |
| 77 | return { x, y, ...successText(`Focused (${x}, ${y})`) }; |
| 78 | } |
| 79 | |
| 80 | export async function handleTypeCommand( |
| 81 | interactor: Interactor, |
no test coverage detected