feat(cli): add effect cli scaffold
This commit is contained in:
parent
1ceb5dbd56
commit
181e58f50a
4 changed files with 67 additions and 3 deletions
15
packages/cli/src/index.ts
Executable file
15
packages/cli/src/index.ts
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bun
|
||||
|
||||
import * as NodeRuntime from "@effect/platform-node/NodeRuntime"
|
||||
import * as NodeServices from "@effect/platform-node/NodeServices"
|
||||
import * as Effect from "effect/Effect"
|
||||
import * as Command from "effect/unstable/cli/Command"
|
||||
|
||||
const cli = Command.make("opencode", {}, () => Effect.void).pipe(
|
||||
Command.withDescription("OpenCode command line interface"),
|
||||
)
|
||||
|
||||
Command.run(cli, { version: "local" }).pipe(
|
||||
Effect.provide(NodeServices.layer),
|
||||
NodeRuntime.runMain,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue