From dd84b9d64fb98746a230cd24233ff50a562c39c9 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:36:44 +0800 Subject: --- turbow.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 turbow.js (limited to 'turbow.js') diff --git a/turbow.js b/turbow.js new file mode 100644 index 0000000..e133ae3 --- /dev/null +++ b/turbow.js @@ -0,0 +1,19 @@ +#!/usr/bin/env node + +const path = require("path"); + +let binPath; +if (path.sep === "\\") { + binPath = ".\\target\\debug\\turbo.exe"; +} else { + binPath = "./target/debug/turbo"; +} + +try { + require("child_process").execFileSync(binPath, process.argv.slice(2), { + stdio: "inherit", + }); +} catch (e) { + if (e && e.status) process.exit(e.status); + throw e; +} -- cgit v1.2.3-70-g09d2