aboutsummaryrefslogtreecommitdiff
path: root/bin/bnu.js
diff options
context:
space:
mode:
authorLily <[email protected]>2026-07-28 16:12:21 +1000
committerGitHub <[email protected]>2026-07-28 16:12:21 +1000
commitc11e17573334dfb487a8e1cc25fa84fa9e138f5c (patch)
treee91dbd19b524f9432da6bcb86b1fc193e0d02e26 /bin/bnu.js
parent6a2f098e72e71437154ec00506e8e736aa8e1026 (diff)
downloadbnu-c11e17573334dfb487a8e1cc25fa84fa9e138f5c.tar.gz
bnu-c11e17573334dfb487a8e1cc25fa84fa9e138f5c.zip
Refactor coreutils into single-call command modules (#1)
* Refactor to single call
Diffstat (limited to 'bin/bnu.js')
-rwxr-xr-xbin/bnu.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/bnu.js b/bin/bnu.js
index b451084..9d1917e 100755
--- a/bin/bnu.js
+++ b/bin/bnu.js
@@ -5,7 +5,8 @@ import { pathToFileURL } from "node:url";
const here = dirname(realpathSync(Bun.argv[1]));
globalThis[Symbol.for("bnu.cli")] = true;
-const { commandNames, main } = await import(pathToFileURL(join(here, "../src/coreutils.js")).href);
+const { commandNames } = await import(pathToFileURL(join(here, "../src/shared/catalog.js")).href);
+const { main } = await import(pathToFileURL(join(here, "../src/shared/runtime.js")).href);
let invokedPath = Bun.argv[1];
try {
if (process.env._ && realpathSync(process.env._) === realpathSync(Bun.argv[1])) invokedPath = process.env._;