Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command is exec.Command for a child that must never open its own console window. On windows a console child of a parent without a console gets a fresh window, so infer running under a GUI host flashes one per spawn.
func CommandContext ¶
CommandContext is exec.CommandContext with the same console suppression as Command.
func KillTreeOnCancel ¶ added in v0.233.2
KillTreeOnCancel kills the command and every process it started on timeout or cancel, on every platform, so a script's children die too and stop holding its output pipes open. A descendant whose parent already exited is reparented out of the tree and survives: job objects or cgroups if that ever shows up.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.