Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultShell string = _DEFAULT_SHELL
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShellConfig ¶
ShellConfig maps OS names to shell invocation strings used when running pre/post commands. The map keys are runtime.GOOS values or the special key "unix" as a catch-all for non-Windows systems.
Example wrapfile usage:
shell: unix: bash -c # linux, darwin, freebsd, etc. darwin: zsh -c # macOS specifically (overrides unix) windows: cmd /c plan9: rc -c
Resolution order for a given OS:
- Exact OS name (e.g. "linux", "darwin", "netbsd", "plan9")
- "unix" — matches any non-Windows OS
- Built-in default: "cmd /c" on Windows, "sh -c" everywhere else
func (ShellConfig) ForHost ¶
func (s ShellConfig) ForHost() string
func (ShellConfig) ForOS ¶
func (s ShellConfig) ForOS(goos string) string
ForOS returns the shell invocation string to use for the given GOOS value.
Click to show internal directories.
Click to hide internal directories.