(
sessionName: string,
options?: { waitSeconds?: number; label?: string; noSave?: boolean },
)
| 56 | } |
| 57 | |
| 58 | export function tmuxCapture( |
| 59 | sessionName: string, |
| 60 | options?: { waitSeconds?: number; label?: string; noSave?: boolean }, |
| 61 | ): string { |
| 62 | const args: string[] = [`${SCRIPTS_DIR}/tmux-capture.sh`, sessionName] |
| 63 | if (options?.waitSeconds) args.push('--wait', String(options.waitSeconds)) |
| 64 | if (options?.label) args.push('--label', options.label) |
| 65 | if (options?.noSave) args.push('--no-save') |
| 66 | |
| 67 | return execFileSync('bash', args, { |
| 68 | ...EXEC_OPTIONS, |
| 69 | stdio: ['pipe', 'pipe', 'pipe'], |
| 70 | }) |
| 71 | } |
| 72 | |
| 73 | export function tmuxStop(sessionName: string): void { |
| 74 | try { |
no outgoing calls
no test coverage detected