feat: Make shell configurable via config file (#23)

This commit is contained in:
Ed Zynda 2025-05-16 14:27:28 +03:00 committed by GitHub
parent 623d132772
commit 4a444e9c9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 60 additions and 4 deletions

View file

@ -73,6 +73,12 @@ type TUIConfig struct {
CustomTheme map[string]any `json:"customTheme,omitempty"`
}
// ShellConfig defines the configuration for the shell used by the bash tool.
type ShellConfig struct {
Path string `json:"path,omitempty"`
Args []string `json:"args,omitempty"`
}
// Config is the main configuration structure for the application.
type Config struct {
Data Data `json:"data"`
@ -85,6 +91,7 @@ type Config struct {
DebugLSP bool `json:"debugLSP,omitempty"`
ContextPaths []string `json:"contextPaths,omitempty"`
TUI TUIConfig `json:"tui"`
Shell ShellConfig `json:"shell,omitempty"`
}
// Application constants