UNPKG

@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.

22 lines (21 loc) 786 B
import type { IFormatOperation } from './interfaces.format.js'; export declare class RollbackManager { private backupDir; private manifestPath; constructor(); createOperation(): Promise<IFormatOperation>; backupFile(filepath: string, operationId: string): Promise<void>; rollback(operationId: string): Promise<void>; markComplete(operationId: string): Promise<void>; cleanOldBackups(retentionDays: number): Promise<void>; verifyBackup(operationId: string): Promise<boolean>; listBackups(): Promise<IFormatOperation[]>; private ensureBackupDir; private generateOperationId; private getBackupPath; private calculateChecksum; private getManifest; private saveManifest; private getOperation; private updateManifest; }