@capgo/cli
Version:
A CLI to upload to capgo servers
14 lines (13 loc) • 887 B
TypeScript
export type PromptPreferenceKey = 'uploadShowReplicationProgress' | 'uploadStarCapgoRepo';
export declare const promptPreferencesPath: string;
interface RememberedConfirmOptions {
preferenceKey: PromptPreferenceKey;
message: string;
initialValue?: boolean;
rememberMessage?: string;
}
export declare function getRememberedPromptPreference(preferenceKey: PromptPreferenceKey, filePath?: string): Promise<boolean | undefined>;
export declare function rememberPromptPreference(preferenceKey: PromptPreferenceKey, value: boolean, filePath?: string): Promise<void>;
export declare function rememberPromptPreferenceSafely(preferenceKey: PromptPreferenceKey, value: boolean, filePath?: string): Promise<void>;
export declare function confirmWithRememberedChoice({ preferenceKey, message, initialValue, rememberMessage, }: RememberedConfirmOptions): Promise<boolean>;
export {};