worktree-tool
Version:
A command-line tool for managing Git worktrees with integrated tmux/shell session management
33 lines • 1.24 kB
TypeScript
import { WorktreeConfig } from "./types.js";
/**
* Load the worktree configuration from the current directory
* @returns The configuration or null if not found
*/
export declare function loadConfig(): Promise<WorktreeConfig | null>;
/**
* Save the worktree configuration to the current directory
* @param config The configuration to save
*/
export declare function saveConfig(config: WorktreeConfig): Promise<void>;
/**
* Get the default configuration for a project
* @param projectName The name of the project
* @returns Default configuration
*/
export declare function getDefaultConfig(projectName: string): WorktreeConfig;
/**
* Validate that an unknown object is a valid WorktreeConfig
* @param config The object to validate
* @returns True if valid, false otherwise
*/
export declare function validateConfig(config: unknown): config is WorktreeConfig;
/**
* Check if a configuration already exists in the current directory
*/
export declare function configExists(): Promise<boolean>;
/**
* Update the .gitignore file to ignore the worktrees directory
* @param baseDir The base directory for worktrees
*/
export declare function updateGitignore(baseDir: string): Promise<void>;
//# sourceMappingURL=config.d.ts.map