fix(flags): normalize short flag consistency across cli-cm-regex-validate, tsgen, migration, and apps-cli#261
Open
cs-raj wants to merge 1 commit into
Open
fix(flags): normalize short flag consistency across cli-cm-regex-validate, tsgen, migration, and apps-cli#261cs-raj wants to merge 1 commit into
cs-raj wants to merge 1 commit into
Conversation
…date, tsgen, migration, and apps-cli
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
Consider reviewing these vulnerabilities when fixes become available. |
naman-contentstack
approved these changes
Jun 30, 2026
harshitha-cstk
approved these changes
Jun 30, 2026
shafeeqd959
approved these changes
Jun 30, 2026
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.
What
Audits and normalizes single-character (
-x) short flags across four CLI plugins based on the v2 consistency rule:Universal short flags kept everywhere:
-a(--alias),-k(--stack-api-key),-y(--yes).Changes by Package
contentstack-cli-cm-regex-validate—src/commands/cm/stacks/validate-regex.ts--contentType-c--filePath-f--globalField-gExamples updated to use long flags.
contentstack-cli-tsgen—src/commands/tsgen.ts+ integration tests--output-o--prefix-p--doc-d--no-docstill works)Examples updated to use long flags.
Integration test file updated — all 8 test cases replaced
-o→--output; test case 2 replaced-p→--prefix.--no-docwas already long-form.contentstack-migration—src/commands/cm/stacks/migration.tsRemoved
char: 'k'from the deprecated--api-keyflag only. The canonical--stack-api-keyretains-k.contentstack-apps-cli—src/commands/app/install.ts+reinstall.tsAdded the missing
char: "k"to--stack-api-keyin both commands. These were the only two commands in the entire codebase where--stack-api-keylacked the universal-kshort flag.Flags NOT Touched
contentstack-external-migrate/src/commands/migrate/convert.ts— excluded intentionally. In this file,-amaps to--affix, not--alias. That inconsistency is tracked separately.Testing
-c,-f,-g,-d). Verified by grep.tsgenintegration test cases updated from-o/-pto--output/--prefix.Files Changed