#!/usr/bin/env node
import {
  formatArtifactRuntimeReadinessFailure,
  runArtifactRuntimeReadinessGuardCli
} from "./src/artifact-runtime-readiness-guard.mjs";

try {
  process.exitCode = await runArtifactRuntimeReadinessGuardCli(process.argv.slice(2));
} catch (error) {
  process.stdout.write(`${JSON.stringify(formatArtifactRuntimeReadinessFailure(error), null, 2)}\n`);
  process.exitCode = 1;
}
