on main help sign in
chore: fix shell
commit2b6766a58dd38dc5337b4b921b736a5f4cb804e3 authorKujtim Hoxha <kujtimii.h@gmail.com> dateMon 30 Jun 2025, 18:29 (1 year ago) parent5bcb647
1 file changed+2−2
internal/config/shell.go+2−2
internal/config/shell.go+2−2
@@ -7,8 +7,8 @@ import (
77 "strings"
88 "time"
99
10− "github.com/charmbracelet/crush/internal/llm/tools/shell"
1110 "github.com/charmbracelet/crush/internal/logging"
11+ "github.com/charmbracelet/crush/internal/shell"
1212)
1313
1414// ExecuteCommand executes a shell command and returns the output
@@ -18,7 +18,7 @@ func ExecuteCommand(ctx context.Context, command string, workingDir string) (str
1818 workingDir = WorkingDirectory()
1919 }
2020
21− persistentShell := shell.GetPersistentShell(workingDir)
21+ persistentShell := shell.NewShell(&shell.Options{WorkingDir: workingDir})
2222
2323 stdout, stderr, err := persistentShell.Exec(ctx, command)
2424 if err != nil {