(serviceName: string)
| 121 | // containing whitespace or metacharacters. |
| 122 | const profile = getInfraProfile(serviceName); |
| 123 | const profileArg = profile ? `--profile ${shellQuote(profile)} ` : ''; |
| 124 | return `docker compose ${profileArg}-f dev/docker-compose.yml logs -f ${shellQuote(serviceName)}`; |
| 125 | } |
| 126 | |
| 127 | function isLogFilterRunning(logPath: string): boolean { |
| 128 | try { |
| 129 | execFileSync('pgrep', ['-f', logPath], { stdio: 'ignore' }); |
| 130 | return true; |
| 131 | } catch { |
| 132 | return false; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | export function ensureServiceLogPipe(sessionName: string, serviceName: string): void { |
no test coverage detected