Documentation
¶
Overview ¶
Package shellconfig resolves the bash shell PiG runs commands through, mirroring upstream packages/coding-agent/src/utils/shell.ts getShellConfig and getBashShellConfig. Upstream never consults $SHELL: commands use bash syntax, so a login shell such as zsh or fish is not a substitute.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLegacyWSLBashPath ¶
IsLegacyWSLBashPath mirrors upstream isLegacyWslBashPath.
Types ¶
type Config ¶
type Config struct {
Path string
Args []string
// CommandTransport mirrors upstream ShellConfig.commandTransport: "stdin"
// writes the command to the shell's stdin instead of appending it to the
// arguments (legacy WSL bash.exe). Empty means argv.
CommandTransport string
}
Config is the resolved shell binary and its leading arguments. The command string is appended as the final argument when spawning, unless CommandTransport is "stdin".
Click to show internal directories.
Click to hide internal directories.