mirror of
https://github.com/larksuite/cli.git
synced 2026-07-06 16:18:05 +08:00
16 lines
426 B
JavaScript
16 lines
426 B
JavaScript
#!/usr/bin/env node
|
|
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
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);
|
|
}
|