UNPKG

long-git-cli

Version:

A CLI tool for Git tag management.

22 lines 617 B
/** * 通用确认交互 * @param message 提示信息 * @param def 默认值 */ export declare function confirm(message: string, def?: boolean): Promise<boolean>; /** * 通用输入交互 * @param message 提示信息 * @param validate 校验函数 */ export declare function input(message: string, validate?: (input: string) => boolean | string): Promise<string>; /** * 通用选择交互 * @param message 提示信息 * @param choices 选项 */ export declare function select<T = string>(message: string, choices: { name: string; value: T; }[]): Promise<T>; //# sourceMappingURL=prompt.d.ts.map