mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-25 01:38:35 +02:00
first ver
This commit is contained in:
BIN
cli/bun.lockb
Executable file
BIN
cli/bun.lockb
Executable file
Binary file not shown.
15
cli/main.ts
Normal file
15
cli/main.ts
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import { Command } from "@effect/cli"
|
||||||
|
import { NodeContext, NodeRuntime } from "@effect/platform-node"
|
||||||
|
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(NodeContext.layer), NodeRuntime.runMain)
|
||||||
7
cli/package.json
Normal file
7
cli/package.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"name": "cli",
|
||||||
|
"dependencies": {
|
||||||
|
"@effect/cli": "^0.44.5",
|
||||||
|
"@effect/platform-node": "^0.60.5"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
> CLI for interfacing with LA
|
> CLI for interfacing with LA
|
||||||
|
|
||||||
Will be modelled after [Encore's Go CLI](https://github.com/encoredev/encore/tree/main/cli/cmd/encore).
|
Built with [Effect CLI](https://github.com/effect-ts/effect/tree/main/packages/cli).
|
||||||
|
|||||||
@@ -39,13 +39,13 @@ bun web
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
If you want to help contribute to code, ask for help on [Discord](https://discord.gg/bxtD8x6aNF)'s `#dev` channel. You will be onboarded and unblocked fast.
|
It's best to first join [Discord](https://discord.gg/bxtD8x6aNF) and ask for help in `#dev` channel. You will be onboarded and unblocked fast.
|
||||||
|
|
||||||
Can see [existing issues](../../issues) for things being worked on. See [main issue](../../issues/110) for what's in focus right now.
|
Can see [existing issues](../../issues) for things being worked on. See [main issue](../../issues/110) for what's in focus right now.
|
||||||
|
|
||||||
Can [open new issue](../../issues/new/choose) (search existing ones for duplicates first) or start discussion on [GitHub](../../discussions) or [Discord](https://discord.gg/bxtD8x6aNF).
|
Can [open new issue](../../issues/new/choose) (search existing ones for duplicates first) or start discussion on [GitHub](../../discussions) or [Discord](https://discord.gg/bxtD8x6aNF).
|
||||||
|
|
||||||
Can always submit draft PRs with good ideas/fixes. We will help along the way to make it merge ready.
|
Can always submit draft PRs with good ideas/fixes. You will be helped along the way to make it merge ready.
|
||||||
|
|
||||||
## Join core team
|
## Join core team
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user