refactor(cli): make yolo canonical
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user