UNPKG

970 BTypeScriptView Raw
1/**
2 * Exposes the API to generate the ace manifest file. The manifest file
3 * contains the meta data of all the registered commands. This speeds
4 * up the boot cycle of ace
5 */
6export declare class ManifestGenerator {
7 private basePath;
8 private commands;
9 /**
10 * Here we keep track of processed command files to prevent loops. Mainly when using
11 * listDirectoryFiles to export command paths from directory and not excluding current file.
12 */
13 private processedFiles;
14 constructor(basePath: string, commands: string[]);
15 /**
16 * Loads a given command from the disk. A command line can recursively
17 * exposed sub command paths. But they should be resolvable using
18 * the base path
19 */
20 private loadCommand;
21 /**
22 * Loads all the commands from the disk recursively.
23 */
24 private loadCommands;
25 /**
26 * Generates and writes the ace manifest file to the base path
27 */
28 generate(): Promise<void>;
29}