( sessionName: string, windowTarget: string | number, pane: number, command: string )
| 461 | '-J', |
| 462 | '-t', |
| 463 | `${sessionName}:${pane.windowIndex}.${pane.paneIndex}`, |
| 464 | '-S', |
| 465 | `-${historyLines}`, |
| 466 | ], |
| 467 | { encoding: 'utf8' } |
| 468 | ); |
| 469 | } |
| 470 | |
| 471 | function pipeServicePane(sessionName: string, serviceName: string, command: string): void { |
| 472 | const pane = findServicePane(sessionName, serviceName); |
| 473 | if (!pane) throw new Error(`Service ${serviceName} is not running in ${sessionName}`); |
| 474 | execFileSync( |
| 475 | 'tmux', |
| 476 | ['pipe-pane', '-t', `${sessionName}:${pane.windowIndex}.${pane.paneIndex}`, command], |
no test coverage detected