diff options
| author | Soccera1 <[email protected]> | 2026-07-18 09:27:17 +1000 |
|---|---|---|
| committer | Soccera1 <[email protected]> | 2026-07-18 09:27:17 +1000 |
| commit | 6f5241afb5bd1d6a1a8724bf06cc6f205c279402 (patch) | |
| tree | 2aa852e968f6b89f2c8458333ce3e7c38b3c2450 /src/commands/test.js | |
| parent | a753f669c9bedfccb9f7f400da018bb487dca5d0 (diff) | |
| download | bnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.tar.gz bnu-6f5241afb5bd1d6a1a8724bf06cc6f205c279402.zip | |
Refactor to single call
Diffstat (limited to 'src/commands/test.js')
| -rw-r--r-- | src/commands/test.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/commands/test.js b/src/commands/test.js new file mode 100644 index 0000000..038410e --- /dev/null +++ b/src/commands/test.js @@ -0,0 +1,13 @@ +#!/usr/bin/env bun + +import { testExpressionStatus } from "../shared/test-expression.js"; +import { defineCommand, runAsMain } from "../shared/command.js"; + +export async function testCmd(args) { + return testExpressionStatus(args, "test"); +} + +const singleCall = defineCommand("test", testCmd, null); +export default singleCall; + +if (import.meta.main) await runAsMain(singleCall); |
