diff options
| author | Dax Raad <[email protected]> | 2025-10-21 15:23:50 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-10-21 15:24:09 -0400 |
| commit | d7cdabe8b75fd5ff88f10bfb3c6415aa24a8c364 (patch) | |
| tree | 09df28b24d7d6f35c888a281d99c5d15707e032f /packages | |
| parent | e7c74d13ccd70400d3680ca7ccd45fe69ee4f103 (diff) | |
| download | opencode-d7cdabe8b75fd5ff88f10bfb3c6415aa24a8c364.tar.gz opencode-d7cdabe8b75fd5ff88f10bfb3c6415aa24a8c364.zip | |
refactor acp args
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/acp.ts | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/packages/opencode/src/cli/cmd/acp.ts b/packages/opencode/src/cli/cmd/acp.ts index 4ae5dc839..f415cd6ad 100644 --- a/packages/opencode/src/cli/cmd/acp.ts +++ b/packages/opencode/src/cli/cmd/acp.ts @@ -1,7 +1,7 @@ -import type { CommandModule } from "yargs" import { ACPServer } from "../../acp/server" +import { cmd } from "./cmd" -export const AcpCommand: CommandModule = { +export const AcpCommand = cmd({ command: "acp", describe: "Start ACP (Agent Client Protocol) server", builder: (yargs) => { @@ -12,10 +12,7 @@ export const AcpCommand: CommandModule = { }) }, handler: async (opts) => { - if (opts["cwd"] && typeof opts["cwd"] === "string") { - process.chdir(opts["cwd"]) - } - + if (opts.cwd) process.chdir(opts["cwd"]) await ACPServer.start() }, -} +}) |
