UNPKG

1.74 kBTypeScriptView Raw
1import * as Config from '@anycli/config';
2import { Command } from '.';
3export declare class Main extends Command {
4 static flags: {
5 version: {
6 name: string;
7 char?: "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "v" | "x" | "y" | "z" | "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "X" | "Y" | "Z" | undefined;
8 description?: string | undefined;
9 hidden?: boolean | undefined;
10 required?: boolean | undefined;
11 env?: string | undefined;
12 parse(input: boolean, context: any): void;
13 } & {
14 type: "boolean";
15 allowNo: boolean;
16 };
17 help: {
18 name: string;
19 char?: "a" | "b" | "i" | "p" | "q" | "s" | "u" | "g" | "c" | "d" | "e" | "f" | "h" | "j" | "k" | "l" | "m" | "n" | "o" | "r" | "t" | "v" | "x" | "y" | "z" | "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "X" | "Y" | "Z" | undefined;
20 description?: string | undefined;
21 hidden?: boolean | undefined;
22 required?: boolean | undefined;
23 env?: string | undefined;
24 parse(input: boolean, context: any): void;
25 } & {
26 type: "boolean";
27 allowNo: boolean;
28 };
29 };
30 static run(argv?: string[], options?: Config.LoadOptions): Promise<any>;
31 run(): Promise<void>;
32 protected _helpOverride(): boolean;
33}
34export declare function run(argv?: string[], options?: Config.Options): Promise<any>;