@git.zone/cli
Version:
A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.
41 lines (40 loc) • 1.16 kB
TypeScript
export interface IModuleStats {
name: string;
filesProcessed: number;
executionTime: number;
errors: number;
successes: number;
filesCreated: number;
filesModified: number;
filesDeleted: number;
}
export interface IFormatStats {
totalExecutionTime: number;
startTime: number;
endTime: number;
moduleStats: Map<string, IModuleStats>;
overallStats: {
totalFiles: number;
totalCreated: number;
totalModified: number;
totalDeleted: number;
totalErrors: number;
cacheHits: number;
cacheMisses: number;
};
}
export declare class FormatStats {
private stats;
constructor();
startModule(moduleName: string): void;
moduleStartTime(moduleName: string): number;
endModule(moduleName: string, startTime: number): void;
recordFileOperation(moduleName: string, operation: 'create' | 'modify' | 'delete', success?: boolean): void;
recordCacheHit(): void;
recordCacheMiss(): void;
finish(): void;
displayStats(): void;
saveReport(outputPath: string): Promise<void>;
private formatDuration;
private getModuleIcon;
}