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