refactor(cli): make yolo canonical

This commit is contained in:
opencode-agent[bot]
2026-06-21 00:59:17 +00:00
parent 46c75db883
commit c8da01ba38
10 changed files with 35 additions and 21 deletions
@@ -111,7 +111,7 @@ Options:
messages [number]
-i, --interactive run in direct interactive split-footer mode
[boolean] [default: false]
--dangerously-skip-permissions, --yolo auto-approve permissions that are not explicitly
--yolo, --dangerously-skip-permissions auto-approve permissions that are not explicitly
denied (dangerous!) [boolean] [default: false]
--demo enable direct interactive demo slash commands; pass
one as the message to run it immediately
@@ -102,8 +102,8 @@ describe("opencode CLI help-text snapshots", () => {
const topLevel = yield* opencode.spawn(["--help"], { env: SNAPSHOT_ENV })
expect(topLevel.exitCode).toBe(0)
expect(topLevel.stderr.endsWith(EOL)).toBe(true)
expect(topLevel.stderr).toContain("--dangerously-skip-permissions")
expect(topLevel.stderr).toContain("--yolo")
expect(topLevel.stderr).toContain("--dangerously-skip-permissions")
const argvs: Array<readonly string[]> = [...TOP_LEVEL.map((c) => [c] as const), ...SUBCOMMANDS]