13 lines
369 B
TypeScript
13 lines
369 B
TypeScript
#!/usr/bin/env tsx
|
|
/* eslint-disable no-console */
|
|
import { runBillingSandboxFlow } from "@hivegrid/billing/sandbox-flow";
|
|
|
|
const runId = process.argv.find((arg) => arg.startsWith("--run-id="))?.slice("--run-id=".length);
|
|
const result = await runBillingSandboxFlow({ runId });
|
|
|
|
console.log(JSON.stringify(result, null, 2));
|
|
|
|
if (!result.ok) {
|
|
process.exitCode = 1;
|
|
}
|