1 |
|
2 | import BluebirdPromise from "bluebird-lst";
|
3 | import { ChildProcess, SpawnOptions } from "child_process";
|
4 | import "source-map-support/register";
|
5 | export { TmpDir } from "temp-file";
|
6 | export { log, warn, task, subTask } from "./log";
|
7 | export { isMacOsSierra } from "./macosVersion";
|
8 | export { execWine, prepareWindowsExecutableArgs } from "./wine";
|
9 | export { Arch, toLinuxArchString, getArchSuffix, ArchType, archFromString } from "./arch";
|
10 | export declare const debug: debug.Debugger;
|
11 | export declare const debug7z: debug.Debugger;
|
12 | export interface BaseExecOptions {
|
13 | cwd?: string;
|
14 | env?: any;
|
15 | stdio?: any;
|
16 | }
|
17 | export interface ExecOptions extends BaseExecOptions {
|
18 | customFds?: any;
|
19 | encoding?: string;
|
20 | timeout?: number;
|
21 | maxBuffer?: number;
|
22 | killSignal?: string;
|
23 | }
|
24 | export declare function removePassword(input: string): string;
|
25 | export declare function exec(file: string, args?: Array<string> | null, options?: ExecOptions, isLogOutIfDebug?: boolean): Promise<string>;
|
26 | export interface ExtraSpawnOptions {
|
27 | isDebugEnabled?: boolean;
|
28 | isPipeInput?: boolean;
|
29 | }
|
30 | export declare function doSpawn(command: string, args: Array<string>, options?: SpawnOptions, extraOptions?: ExtraSpawnOptions): ChildProcess;
|
31 | export declare function spawnAndWrite(command: string, args: Array<string>, data: string, options?: SpawnOptions, isDebugEnabled?: boolean): BluebirdPromise<any>;
|
32 | export declare function spawn(command: string, args?: Array<string> | null, options?: SpawnOptions, extraOptions?: ExtraSpawnOptions): Promise<any>;
|
33 | export declare function handleProcess(event: string, childProcess: ChildProcess, command: string, resolve: ((value?: any) => void) | null, reject: (reason?: any) => void): void;
|
34 | export declare function use<T, R>(value: T | null, task: (it: T) => R): R | null;
|
35 | export declare function debug7zArgs(command: "a" | "x"): Array<string>;
|
36 | export declare function isEmptyOrSpaces(s: string | null | undefined): s is "" | null | undefined;
|
37 | export declare function isTokenCharValid(token: string): boolean;
|
38 | export declare function asArray<T>(v: null | undefined | T | Array<T>): Array<T>;
|
39 | export declare function getCacheDirectory(): string;
|
40 | export declare function smarten(s: string): string;
|
41 | export declare function addValue<K, T>(map: Map<K, Array<T>>, key: K, value: T): void;
|
42 | export declare function replaceDefault(inList: Array<string> | null | undefined, defaultList: Array<string>): Array<string>;
|
43 | export declare function getPlatformIconFileName(value: string | null | undefined, isMac: boolean): string | null | undefined;
|
44 | export declare function isPullRequest(): boolean | "" | undefined;
|
45 | export declare function safeStringifyJson(data: any, skippedNames?: Set<string>): string;
|
46 | export declare function isEnvTrue(value: string | null | undefined): boolean;
|