Buckets:
| import { Argument, Flag } from "effect/unstable/cli" | |
| import { Spec } from "../framework/spec" | |
| declare const OPENCODE_CLI_NAME: string | undefined | |
| export const Commands = Spec.make(typeof OPENCODE_CLI_NAME === "string" ? OPENCODE_CLI_NAME : "opencode", { | |
| description: "OpenCode 2.0 preview command line interface", | |
| commands: [ | |
| Spec.make("debug", { | |
| description: "Debugging and troubleshooting tools", | |
| commands: [Spec.make("agents", { description: "List all agents" })], | |
| }), | |
| Spec.make("migrate", { description: "Migrate v1 data to v2" }), | |
| Spec.make("service", { | |
| description: "Manage the background server", | |
| commands: [ | |
| Spec.make("start", { description: "Start the background server" }), | |
| Spec.make("restart", { description: "Restart the background server" }), | |
| Spec.make("status", { description: "Show background server status" }), | |
| Spec.make("stop", { description: "Stop the background server" }), | |
| Spec.make("password", { | |
| description: "Get or set the server password", | |
| params: { value: Argument.string("value").pipe(Argument.optional) }, | |
| }), | |
| ], | |
| }), | |
| Spec.make("serve", { | |
| description: "Start the v2 API server", | |
| params: { | |
| hostname: Flag.string("hostname").pipe(Flag.withDefault("127.0.0.1")), | |
| port: Flag.integer("port").pipe(Flag.optional), | |
| register: Flag.boolean("register").pipe(Flag.withDefault(false)), | |
| }, | |
| }), | |
| ], | |
| }) | |
Xet Storage Details
- Size:
- 1.49 kB
- Xet hash:
- cc9522c02c4930b9d504ce3dbb3bf7bd95bb97823593f4a46a736a0404f28d1d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.