@vxrn/takeout-cli
Version:
CLI tools for Takeout starter kit - interactive onboarding and project setup
24 lines • 1.3 kB
TypeScript
/**
* Reusable prompt helpers using @clack/prompts
*/
import * as p from '@clack/prompts';
import type { PortCheck, PrerequisiteCheck } from '../types';
export declare function displayWelcome(projectName?: string): void;
export declare function displayOutro(message: string): void;
export declare function displayPrerequisites(checks: PrerequisiteCheck[]): void;
export declare function displayPortConflicts(conflicts: PortCheck[]): void;
export declare function confirmContinue(message: string, defaultValue?: boolean): Promise<boolean>;
export declare function promptText(message: string, defaultValue?: string, placeholder?: string): Promise<string>;
export declare function promptPassword(message: string): Promise<string>;
export declare function promptSelect<T extends string>(message: string, options: {
value: T;
label: string;
hint?: string;
}[]): Promise<T>;
export declare function showSpinner(message: string): ReturnType<typeof p.spinner>;
export declare function showError(message: string): void;
export declare function showWarning(message: string): void;
export declare function showSuccess(message: string): void;
export declare function showInfo(message: string): void;
export declare function showStep(message: string): void;
//# sourceMappingURL=prompts.d.ts.map