diff options
| author | 2023-04-28 01:36:44 +0800 | |
|---|---|---|
| committer | 2023-04-28 01:36:44 +0800 | |
| commit | dd84b9d64fb98746a230cd24233ff50a562c39c9 (patch) | |
| tree | b583261ef00b3afe72ec4d6dacb31e57779a6faf /turbow.js | |
| parent | 0b46fcd72ac34382387b2bcf9095233efbcc52f4 (diff) | |
| download | HydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.tar.gz HydroRoll-dd84b9d64fb98746a230cd24233ff50a562c39c9.zip | |
Diffstat (limited to 'turbow.js')
| -rw-r--r-- | turbow.js | 19 |
1 files changed, 19 insertions, 0 deletions
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; +} |
