aboutsummaryrefslogtreecommitdiff
path: root/src/coreutils.js
blob: 5bc6e5bd65d690ecccf990bb8f8e3fd66a4400e3 (plain)
1
2
3
4
5
6
7
8
9
import { main } from "./shared/runtime.js";

export { commandNames } from "./shared/catalog.js";
export { executeCommand, main } from "./shared/runtime.js";

if (import.meta.main) {
  globalThis[Symbol.for("bnu.cli")] = true;
  process.exit(await main(Bun.argv.slice(2)));
}