blob: 9c64e4ea2632ece5428796d97613c5376915b818 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { BufferTask, EmptyTaskParser, SimpleGitTask, StringTask } from '../types';
export declare const EMPTY_COMMANDS: [];
export declare type EmptyTask = {
commands: typeof EMPTY_COMMANDS;
format: 'empty';
parser: EmptyTaskParser;
onError?: undefined;
};
export declare function adhocExecTask(parser: EmptyTaskParser): EmptyTask;
export declare function configurationErrorTask(error: Error | string): EmptyTask;
export declare function straightThroughStringTask(commands: string[], trimmed?: boolean): StringTask<string>;
export declare function straightThroughBufferTask(commands: string[]): BufferTask<any>;
export declare function isBufferTask<R>(task: SimpleGitTask<R>): task is BufferTask<R>;
export declare function isEmptyTask<R>(task: SimpleGitTask<R>): task is EmptyTask;
|