worktree-tool
Version:
A command-line tool for managing Git worktrees with integrated tmux/shell session management
35 lines • 1.24 kB
TypeScript
import { ShellType } from "../core/types.js";
/**
* Get the shell command for the given shell type
*/
export declare function getShellCommand(shellType: ShellType): string;
/**
* Get the shell arguments for the given shell type
*/
export declare function getShellArgs(shellType: ShellType): string[];
/**
* Set the shell prompt for the given shell type and worktree name
* Simple format: [worktreeName] >
*/
export declare function setShellPrompt(shellType: ShellType, worktreeName: string): string[];
/**
* Spawn a shell in the specified directory with a custom prompt
* Uses shell-specific approaches to ensure prompt is properly set
*/
export declare function spawnShell(directory: string, shellType: ShellType, worktreeName: string): Promise<void>;
/**
* Check if a shell command is available on the system
*/
export declare function isShellAvailable(shellType: ShellType): Promise<boolean>;
/**
* ShellManager class for managing shell operations
*/
export declare class ShellManager {
private terminalManager;
constructor();
/**
* Execute a command in a new window
*/
executeInNewWindow(command: string, cwd: string, windowTitle: string): Promise<void>;
}
//# sourceMappingURL=shell.d.ts.map