package cli import "fmt" // ExitError carries a dispatched subprocess exit code so the CLI can propagate the // exact status. The child already streamed its own stdout/stderr, so main exits // with this code without printing a duplicate diagnostic. type ExitError struct{ Code int } func (e *ExitError) Error() string { return fmt.Sprintf("subprocess exited with status %d", e.Code) } func (e *ExitError) ExitCode() int { return e.Code }