mirror of
https://github.com/larksuite/cli.git
synced 2026-07-03 22:24:31 +08:00
13 lines
343 B
JavaScript
13 lines
343 B
JavaScript
#!/usr/bin/env node
|
|
const { execFileSync } = require("child_process");
|
|
const path = require("path");
|
|
|
|
const ext = process.platform === "win32" ? ".exe" : "";
|
|
const bin = path.join(__dirname, "..", "bin", "lark-cli" + ext);
|
|
|
|
try {
|
|
execFileSync(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
} catch (e) {
|
|
process.exit(e.status || 1);
|
|
}
|