UNPKG

717 BTypeScriptView Raw
1import { Command } from '../command';
2import { Logger } from '../logger';
3import { FlowController } from './flow-controller';
4export type ProcessCloseCondition = 'failure' | 'success';
5/**
6 * Sends a SIGTERM signal to all commands when one of the commands exits with a matching condition.
7 */
8export declare class KillOthers implements FlowController {
9 private readonly logger;
10 private readonly conditions;
11 private readonly killSignal;
12 constructor({ logger, conditions, killSignal, }: {
13 logger: Logger;
14 conditions: ProcessCloseCondition | ProcessCloseCondition[];
15 killSignal: string | undefined;
16 });
17 handle(commands: Command[]): {
18 commands: Command[];
19 };
20}