crossspawn

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 10 Imported by: 0

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

func Command(ctx context.Context, dir, name string, args ...string) *exec.Cmd

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL