From 6f5241afb5bd1d6a1a8724bf06cc6f205c279402 Mon Sep 17 00:00:00 2001 From: Soccera1 <129828376+Soccera1@users.noreply.github.com> Date: Sat, 18 Jul 2026 09:27:17 +1000 Subject: Refactor to single call --- src/commands/test.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/commands/test.js (limited to 'src/commands/test.js') 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); -- cgit v1.3