This commit is contained in:
EthanShoeDev
2025-11-30 17:52:15 -05:00
commit 01a35296a9
12 changed files with 1309 additions and 0 deletions

17
src/bin.ts Normal file
View File

@@ -0,0 +1,17 @@
import { Command } from "@effect/cli"
import { BunContext, BunRuntime } from "@effect/platform-bun"
import { Console, Effect } from "effect"
// Define the top-level command
const command = Command.make("hello-world", {}, () =>
Console.log("Hello World")
)
// Set up the CLI application
const cli = Command.run(command, {
name: "Hello World CLI",
version: "v1.0.0"
})
// Prepare and run the CLI application
cli(process.argv).pipe(Effect.provide(BunContext.layer), BunRuntime.runMain)