Repository navigation
fix(cli): rename live-site write confirmation flag to --allow-write - #31
Conversation
`customer create --yes` does not say what is being agreed to. API write commands now take --allow-write to confirm a write on a live site without the prompt. -y/--yes keeps working as a hidden, deprecated alias that prints a warning naming --allow-write; it will be removed in the next major version. The -y/--yes on `auth remove` and `skills` is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe CLI now uses ChangesLive-write confirmation
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Possibly related PRs
Suggested reviewers: Merge Risk:
|
Test coverage✅ Gate passed — all 79 files are at or above the 95% floor.
|
Summary
chargebee customer create --yesdoesn't say what you're agreeing to. On API write commands,-y/--yesactually means "run this write on a live (production) site without asking." This PR renames that flag to--allow-write.To avoid breaking scripts written against v1.5.1,
-y/--yesstill works on API write commands. It is hidden from help and prints a deprecation warning that names--allow-write. We'll remove it in the next major version.Changes
--allow-write.-y/--yesis a hidden, deprecated alias (src/tools/generate.ts, regeneratedsrc/commands/generated/*).ensureWriteAllowedtakes{ allowWrite, yes }. It warns on stderr when only the deprecated alias is used. The refusal message now points to--allow-write.auth addhelp, and the bundled skill content (SKILL.md,commands.md,workflows.md).--allow-write. New tests cover the--yes/-yalias with its warning, no warning when--allow-writeis passed, and help listing--allow-writewhile hiding--yes.Unchanged:
-y/--yesonauth removeandskills add/update/remove. There it really is a generic "skip prompts," not a production-write confirmation. Test sites, reads, non-mutating POSTs, and--code-samplebehave as before.Type of change
Checklist
bun testpasses (unit and integration: 1417 pass; per-file coverage gate passes)bun run typecheckpassesbun run generate --refreshand committed the regeneratedsrc/commands/generated/*Related issues
Follow-up to the live-site write confirmation added in v1.5.1.
🤖 Generated with Claude Code
Renames the live-site write confirmation flag from
-y/--yesto--allow-writefor generated write commands.--yesand-ystay as hidden deprecated aliases that print a warning. UpdatesensureWriteAllowed,liveWriteDecision, refusal text, docs, and skill content.auth removeandskillsflags are unchanged.