1#!/usr/bin/env node
2
3import * as NodeServices from "@effect/platform-node/NodeServices"
4import * as Command from "effect/cli/Command"
5import * as Effect from "effect/Effect"
6import { codegen } from "./commands/codegen.ts"
7
8const cli = Command.make("effect-utils").pipe(
9 Command.withSubcommands([codegen])
10)
11
12const main = Command.run(cli, { version: "0.0.0" }).pipe(
13 Effect.provide(NodeServices.layer)
14)
15
16Effect.runPromise(main)