aboutsummaryrefslogtreecommitdiff
path: root/src/commands/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/test.js')
-rw-r--r--src/commands/test.js13
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);