Skip to content

Commit

Permalink
feat(cli): Add smart-casing flag for IR commands (#5249)
Browse files Browse the repository at this point in the history
  • Loading branch information
amckinney authored Nov 21, 2024
1 parent 8d985a5 commit e4299dd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/cli/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@ function addIrCommand(cli: Argv<GlobalCliOptions>, cliContext: CliContext) {
string: true,
default: new Array<string>(),
description: "Filter the IR for certain audiences"
})
.option("smart-casing", {
boolean: true,
description: "Whether to use smart casing"
}),
async (argv) => {
await generateIrForWorkspaces({
Expand All @@ -486,7 +490,7 @@ function addIrCommand(cli: Argv<GlobalCliOptions>, cliContext: CliContext) {
audiences: argv.audience.length > 0 ? { type: "select", audiences: argv.audience } : { type: "all" },
version: argv.version,
keywords: undefined,
smartCasing: false,
smartCasing: argv.smartCasing ?? false,
readme: undefined
});
}
Expand Down Expand Up @@ -555,6 +559,10 @@ function addDynamicIrCommand(cli: Argv<GlobalCliOptions>, cliContext: CliContext
string: true,
default: new Array<string>(),
description: "Filter the IR for certain audiences"
})
.option("smart-casing", {
boolean: true,
description: "Whether to use smart casing"
}),
async (argv) => {
await generateDynamicIrForWorkspaces({
Expand All @@ -569,7 +577,7 @@ function addDynamicIrCommand(cli: Argv<GlobalCliOptions>, cliContext: CliContext
audiences: { type: "all" },
version: argv.version,
keywords: undefined,
smartCasing: false
smartCasing: argv.smartCasing ?? false
});
}
);
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/cli/versions.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- changelogEntry:
- summary: |
Add support for the `smart-casing` flags in the IR commands.
type: internal
irVersion: 53
version: 0.45.0-rc53

- changelogEntry:
- summary: |
Fix bug where max length validation for strings were incorrectly plumbed.
Expand Down

0 comments on commit e4299dd

Please sign in to comment.