Skip to content
Source
Sign inSign up
Open History to see the last commit

bin.ts

16 lines432 Bytes

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])
11​
12const main = Command.run(cli, { version: "0.0.0" }).pipe(
13 Effect.provide(NodeServices.layer)
15​
16Effect.runPromise(main)