aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/concurrently/dist/src/flow-control/log-timings.d.ts
blob: a84770730a00a9c3f50e3a5d1e11b184284d1b73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { CloseEvent, Command } from '../command';
import { Logger } from '../logger';
import { FlowController } from './flow-controller';
type TimingInfo = {
    name: string;
    duration: string;
    'exit code': string | number;
    killed: boolean;
    command: string;
};
/**
 * Logs timing information about commands as they start/stop and then a summary when all commands finish.
 */
export declare class LogTimings implements FlowController {
    static mapCloseEventToTimingInfo({ command, timings, killed, exitCode, }: CloseEvent): TimingInfo;
    private readonly logger?;
    private readonly timestampFormat;
    constructor({ logger, timestampFormat, }: {
        logger?: Logger;
        timestampFormat?: string;
    });
    private printExitInfoTimingTable;
    handle(commands: Command[]): {
        commands: Command[];
        onFinish?: undefined;
    } | {
        commands: Command[];
        onFinish: () => void;
    };
}
export {};
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage