fix: restore --force flag and remove -f alias from --format#54
Merged
designcode merged 2 commits intomainfrom Mar 30, 2026
Merged
fix: restore --force flag and remove -f alias from --format#54designcode merged 2 commits intomainfrom
designcode merged 2 commits intomainfrom
Conversation
… from --format The previous refactor (auto-inject global arguments) silently changed the meaning of -f from --force to --format on rm/mv commands. This restores --force/-f on rm and mv (supporting the -rf convention), adds --force (without -f alias) back to buckets delete, objects delete, access-keys delete, iam policies delete, iam users remove, and iam users revoke-invitation for backwards compatibility, and removes -f as an alias for --format globally. Also excludes auto-generated command-registry.ts from eslint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MantasMiksys
approved these changes
Mar 30, 2026
|
🎉 This PR is included in version 2.14.0-beta.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
-fas alias for--formatglobally — prevents the silent behavior change where-fonrm/mvwas interpreted as--formatinstead of--force--force -fonrmandmv— supports the-rfconvention for recursive force delete/move--force(without-f) on 6 destructive commands —buckets delete,objects delete,access-keys delete,iam policies delete,iam users remove,iam users revoke-invitationfor backwards compatibilitycommand-registry.tsfrom eslint — fixes recurring pre-commit hook failuresworkflow_dispatchon CI — allows manual integration test runsFlag layout after this PR
rm,mv--yes -y,--force -f(supports-rf)buckets delete,objects delete,access-keys delete,iam policies delete,iam users remove,iam users revoke-invitation--yes -y,--force--yes -yTest plan
--forcebackwards-compat tests forbuckets deleteandobjects delete🤖 Generated with Claude Code
Note
Medium Risk
Changes CLI option parsing/aliases for destructive commands, which can affect scripting and user expectations across many commands. Core operations are unchanged, but flag-resolution regressions are possible if the command registry/spec parsing diverges from these updates.
Overview
Fixes CLI flag/alias behavior for destructive commands.
-fis no longer treated as an alias for--format, andgetFormatnow only reads--format, preventingrm/mv -ffrom being misinterpreted as output formatting.Restores/expands force semantics for destructive operations.
rmandmvaccept--force/-f(in addition to--yes/-y), and several delete/remove commands accept--forceas a backwards-compatible alias for--yes;specs.yamland integration tests are updated accordingly.Dev tooling/CI tweaks. ESLint now ignores the generated
src/command-registry.ts, and GitHub Actions CI addsworkflow_dispatchplus allows the integration job to run on manual dispatch as well as pushes.Written by Cursor Bugbot for commit 453ea27. This will update automatically on new commits. Configure here.