UNPKG

1.21 kBTypeScriptView Raw
1import { CleanSummary } from '../../../typings';
2import { StringTask } from '../types';
3export declare const CONFIG_ERROR_INTERACTIVE_MODE = "Git clean interactive mode is not supported";
4export declare const CONFIG_ERROR_MODE_REQUIRED = "Git clean mode parameter (\"n\" or \"f\") is required";
5export declare const CONFIG_ERROR_UNKNOWN_OPTION = "Git clean unknown option found in: ";
6/**
7 * All supported option switches available for use in a `git.clean` operation
8 */
9export declare enum CleanOptions {
10 DRY_RUN = "n",
11 FORCE = "f",
12 IGNORED_INCLUDED = "x",
13 IGNORED_ONLY = "X",
14 EXCLUDING = "e",
15 QUIET = "q",
16 RECURSIVE = "d"
17}
18/**
19 * The two modes `git.clean` can run in - one of these must be supplied in order
20 * for the command to not throw a `TaskConfigurationError`
21 */
22export declare type CleanMode = CleanOptions.FORCE | CleanOptions.DRY_RUN;
23export declare function cleanWithOptionsTask(mode: CleanMode | string, customArgs: string[]): import("./task").EmptyTask | StringTask<CleanSummary>;
24export declare function cleanTask(mode: CleanMode, customArgs: string[]): StringTask<CleanSummary>;
25export declare function isCleanOptionsArray(input: string[]): input is CleanOptions[];