UNPKG

580 BTypeScriptView Raw
1/**
2 * Command line utils functions.
3 */
4export declare class CommandUtils {
5 /**
6 * Creates directories recursively.
7 */
8 static createDirectories(directory: string): Promise<{}>;
9 /**
10 * Creates a file with the given content in the given path.
11 */
12 static createFile(filePath: string, content: string, override?: boolean): Promise<void>;
13 /**
14 * Reads everything from a given file and returns its content as a string.
15 */
16 static readFile(filePath: string): Promise<string>;
17 static fileExists(filePath: string): Promise<boolean>;
18}