on main help sign in
chore: fix shell
2b6766aKujtim Hoxha
internal/config/shell.go+2−2
@@ -7,8 +7,8 @@ import (
7 "strings"
7 "strings"
8 "time"
8 "time"
9
9
10− "github.com/charmbracelet/crush/internal/llm/tools/shell"
11 "github.com/charmbracelet/crush/internal/logging"
10 "github.com/charmbracelet/crush/internal/logging"
11+ "github.com/charmbracelet/crush/internal/shell"
12)
12)
13
13
14// ExecuteCommand executes a shell command and returns the output
14// ExecuteCommand executes a shell command and returns the output
@@ -18,7 +18,7 @@ func ExecuteCommand(ctx context.Context, command string, workingDir string) (str
18 workingDir = WorkingDirectory()
18 workingDir = WorkingDirectory()
19 }
19 }
20
20
21− persistentShell := shell.GetPersistentShell(workingDir)
21+ persistentShell := shell.NewShell(&shell.Options{WorkingDir: workingDir})
22
22
23 stdout, stderr, err := persistentShell.Exec(ctx, command)
23 stdout, stderr, err := persistentShell.Exec(ctx, command)
24 if err != nil {
24 if err != nil {