Documentation
¶
Overview ¶
Package shellconfig resolves one immutable shell invocation policy for all coding-agent command execution paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLegacyWSLBashPath ¶
IsLegacyWSLBashPath identifies Windows' historical WSL bash launcher.
Types ¶
type CommandTransport ¶
type CommandTransport uint8
CommandTransport identifies where the shell receives command text.
const ( CommandArgument CommandTransport = iota CommandStdin )
type Config ¶
type Config struct {
Shell string
Args []string
Transport CommandTransport
}
Config is the resolved, reusable shell policy.
func ConfigForBash ¶
ConfigForBash selects stdin transport for the legacy Windows WSL launcher.
func Resolve ¶
func Resolve( customShellPath string, options ResolveOptions, ) (Config, error)
Resolve applies Pi's shell resolution order with Go-native path lookup.
func (Config) Invocation ¶
func (c Config) Invocation(command string) Invocation
Invocation projects command text according to the resolved transport without sharing the Config Args backing array.
type Invocation ¶
Invocation is a detached command-specific projection of Config.
Click to show internal directories.
Click to hide internal directories.