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.

20 lines (19 loc) 945 B
import { FormatContext } from './classes.formatcontext.js'; import type { IPlannedChange } from './interfaces.format.js'; import { Project } from '../classes.project.js'; export declare abstract class BaseFormatter { protected context: FormatContext; protected project: Project; protected stats: any; constructor(context: FormatContext, project: Project); abstract get name(): string; abstract analyze(): Promise<IPlannedChange[]>; abstract applyChange(change: IPlannedChange): Promise<void>; execute(changes: IPlannedChange[]): Promise<void>; protected preExecute(): Promise<void>; protected postExecute(): Promise<void>; protected modifyFile(filepath: string, content: string): Promise<void>; protected createFile(filepath: string, content: string): Promise<void>; protected deleteFile(filepath: string): Promise<void>; protected shouldProcessFile(filepath: string): Promise<boolean>; }