MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createWindowsBashNotFoundError

Function createWindowsBashNotFoundError

sdk/src/tools/run-terminal-command.ts:100–117  ·  view source on GitHub ↗

* Create an error message for Windows users when bash is not available.

()

Source from the content-addressed store, hash-verified

98 * Create an error message for Windows users when bash is not available.
99 */
100function createWindowsBashNotFoundError(): Error {
101 return new Error(
102 `Bash is required but was not found on this Windows system.
103
104To fix this, you have several options:
105
1061. Install Git for Windows (includes bash.exe):
107 Download from: https://git-scm.com/download/win
108
1092. Use WSL (Windows Subsystem for Linux):
110 Run in PowerShell (Admin): wsl --install
111 Then run Codebuff inside WSL.
112
1133. Set a custom bash path:
114 Set the CODEBUFF_GIT_BASH_PATH environment variable to your bash.exe location.
115 Example: set CODEBUFF_GIT_BASH_PATH=C:\\path\\to\\bash.exe`,
116 )
117}
118
119export function runTerminalCommand({
120 command,

Callers 1

runTerminalCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected