Files
t3code/apps/server/src/cli/servicePreflight.ts
T
2026-10-05 13:15:14 -07:00

18 lines
594 B
TypeScript

import * as Console from "effect/Console";
import * as Effect from "effect/Effect";
import { Command, Flag } from "effect/cli";
import { runServicePreflight } from "../cloud/servicePreflight.ts";
export const servicePreflightCommand = Command.make("__service-preflight", {
databasePath: Flag.String("database-path"),
launcherProtocol: Flag.Int("launcher-protocol"),
}).pipe(
Command.unlisted,
Command.withHandler(({ databasePath, launcherProtocol }) =>
Console.log(JSON.stringify(runServicePreflight({ databasePath, launcherProtocol }))).pipe(
Effect.asVoid,
),
),
);