open-code-review/bin/ocr.js
2026-05-20 22:03:52 +08:00

14 lines
336 B
JavaScript
Executable file

#!/usr/bin/env node
"use strict";
const { spawnSync } = require("child_process");
const path = require("path");
const binaryPath = path.join(__dirname, "opencodereview");
const result = spawnSync(binaryPath, process.argv.slice(2), {
stdio: "inherit",
env: process.env,
});
process.exit(result.status ?? (result.error ? 1 : 0));