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