#!/usr/bin/env node
import {
  formatM3IoControlE2eFailure,
  runM3IoControlE2eCli
} from "./src/m3-io-control-e2e.mjs";

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