Skip to content

state-check.ts ​

Source: examples/control-flow/lifecycle/state-check.ts · Download source · Example guide

ts
import { execute, type Input, type Options, type Runner } from "./shared.ts";
import { isMain, runCli } from "./cli.ts";
/** Check business readiness and revision before inference and atomic registration. */
export async function runStateCheck(runtime: Runner, input: Input, options: Options = {}) {
  return execute(runtime, input, options);
}
if (isMain(import.meta.url)) await runCli(runStateCheck, "state");

Ditto · @codesoul-co/ditto · Node.js 24+