@anycli/command
Version:
anycli base command
35 lines (34 loc) • 1.74 kB
TypeScript
import * as Config from '@anycli/config';
import { Command } from '.';
export declare class Main extends Command {
static flags: {
version: {
name: string;
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;
description?: string | undefined;
hidden?: boolean | undefined;
required?: boolean | undefined;
env?: string | undefined;
parse(input: boolean, context: any): void;
} & {
type: "boolean";
allowNo: boolean;
};
help: {
name: string;
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;
description?: string | undefined;
hidden?: boolean | undefined;
required?: boolean | undefined;
env?: string | undefined;
parse(input: boolean, context: any): void;
} & {
type: "boolean";
allowNo: boolean;
};
};
static run(argv?: string[], options?: Config.LoadOptions): Promise<any>;
run(): Promise<void>;
protected _helpOverride(): boolean;
}
export declare function run(argv?: string[], options?: Config.LoadOptions): Promise<any>;