feat(cli): add effect cli scaffold

This commit is contained in:
Dax Raad
2026-05-29 23:12:12 -04:00
parent 1ceb5dbd56
commit 181e58f50a
4 changed files with 67 additions and 3 deletions
+15
View 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,
)