git-aiflow
Version:
🚀 An AI-powered workflow automation tool for effortless Git-based development, combining smart GitLab/GitHub merge & pull request creation with Conan package management.
28 lines • 934 B
TypeScript
/**
* Cross-platform shell executor
* - Windows: PowerShell Core (pwsh) or Windows PowerShell (powershell)
* - macOS/Linux: bash or zsh
*/
export declare class Shell {
private static readonly instances;
private constructor();
static instance(): Shell;
/**
* Execute a shell command and return stdout as string
* @param command The command to execute
*/
run(shell_command: string, ...args: string[]): string;
runProcess(process: string, ...args: string[]): string;
/**
* Execute a shell command and return detailed result including exit code
* @param command The command to execute
* @param args Command arguments
* @returns Object containing success status, output, and exit code
*/
runWithExitCode(command: string, ...args: string[]): {
success: boolean;
output: string;
exitCode: number;
};
}
//# sourceMappingURL=shell.d.ts.map