‘liusuyi’
2023-08-09 161b9318e345c8a0c9cdc133b33a1c759495f323
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/// <reference types="node" />
declare class CLIError extends Error {
}
declare type Logger = typeof console;
interface IOptions {
    [key: string]: number | string | boolean;
}
interface IAnnoations {
    description?: string;
    params?: string[];
    options?: IOptions;
    [key: string]: any;
}
declare type PrintHelp = (scriptName: string, annotations: IAnnoations, logger: Logger) => void | null;
declare type CliCallback = (options: IOptions, ...params: string[]) => any;
declare const Cli: {
    (argv: string[], annotations?: string | IAnnoations, help?: PrintHelp, logger?: Console): (callback: CliCallback) => any;
    CliError: typeof CLIError;
};
export = Cli;