Files
zopu-code/repos/effect-smol/packages/tools/utils/src/bin.ts
T

17 lines
441 B
JavaScript
Executable File

#!/usr/bin/env node
import * as NodeServices from "@effect/platform-node/NodeServices"
import * as Effect from "effect/Effect"
import * as Command from "effect/unstable/cli/Command"
import { codegen } from "./commands/codegen.ts"
const cli = Command.make("effect-utils").pipe(
Command.withSubcommands([codegen])
)
const main = Command.run(cli, { version: "0.0.0" }).pipe(
Effect.provide(NodeServices.layer)
)
Effect.runPromise(main)