MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / buildInfraLogCommand

Function buildInfraLogCommand

dev/local/runner.ts:123–133  ·  view source on GitHub ↗
(serviceName: string)

Source from the content-addressed store, hash-verified

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
127function isLogFilterRunning(logPath: string): boolean {
128 try {
129 execFileSync('pgrep', ['-f', logPath], { stdio: 'ignore' });
130 return true;
131 } catch {
132 return false;
133 }
134}
135
136export function ensureServiceLogPipe(sessionName: string, serviceName: string): void {

Callers 1

startServiceInTmuxFunction · 0.85

Calls 2

getInfraProfileFunction · 0.90
shellQuoteFunction · 0.70

Tested by

no test coverage detected