aahook
Version:
A CLI tool that displays ASCII art when commands succeed or fail
29 lines • 729 B
TypeScript
/**
* Parsed command line arguments
*/
export interface ParsedArgs {
command: string | null;
args: string[];
}
/**
* Ensure directory exists, create if not
*/
export declare function ensureDirectory(dirPath: string): void;
/**
* Copy file from source to destination
*/
export declare function copyFile(src: string, dest: string): void;
/**
* Check if file exists
*/
export declare function fileExists(filePath: string): boolean;
/**
* Get timestamp string for backup naming
* @returns Timestamp in format YYYYMMDD-HHMMSS
*/
export declare function getTimestamp(): string;
/**
* Parse command line arguments
*/
export declare function parseArgs(argv: string[]): ParsedArgs;
//# sourceMappingURL=utils.d.ts.map