UNPKG

pgit-cli

Version:

Private file tracking with dual git repositories

65 lines 2.02 kB
import { CommandResult, CommandOptions } from '../types/config.types'; import { BaseError } from '../errors/base.error'; /** * Preset command specific errors */ export declare class PresetCommandError extends BaseError { readonly code = "PRESET_COMMAND_ERROR"; readonly recoverable = true; } export declare class NotInitializedError extends BaseError { readonly code = "NOT_INITIALIZED"; readonly recoverable = false; } /** * Preset command for managing file and directory presets */ export declare class PresetCommand { private readonly workingDir; private readonly fileSystem; private readonly configManager; private readonly presetManager; private readonly addCommand; constructor(workingDir?: string); /** * Apply a preset by adding all its paths to private tracking */ apply(presetName: string, options?: CommandOptions): Promise<CommandResult>; /** * Add a new user preset */ add(presetName: string, paths: string[], options?: CommandOptions & { global?: boolean; }): Promise<CommandResult>; /** * Remove a user-defined preset */ remove(presetName: string, options?: CommandOptions & { global?: boolean; }): Promise<CommandResult>; /** * List all available presets */ list(options?: CommandOptions): Promise<CommandResult>; /** * Show details about a specific preset */ show(presetName: string, _options?: CommandOptions): Promise<CommandResult>; /** * Apply preset paths using bulk add command for atomic commit */ private applyPresetPathsBulk; /** * Fallback to individual file processing when bulk operation fails */ private fallbackToIndividualProcessing; /** * Display the results of applying a preset */ private displayApplyResults; /** * Handle preset not found error with helpful suggestions */ private handlePresetNotFound; } //# sourceMappingURL=preset.command.d.ts.map