Documentation
¶
Overview ¶
Package crossspawn starts a program the way upstream's spawnProcess does (coding-agent utils/child-process.ts): Node's spawn on Unix, and on Windows the cross-spawn package, which checks shebang interpreters before selecting direct execution or escaped cmd.exe execution for command shims.
Ports packages/coding-agent/src/utils/child-process.ts (Windows spawnProcess routing through cross-spawn).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command returns the command that runs name with args in dir. It resolves Windows command shims and shebangs in the child's working directory before choosing shell escaping. An empty dir inherits the current directory. The child starts in the directory libuv gives Node's spawn for dir (nodespawn.SetDirectory).
Types ¶
This section is empty.