Skip to content

Commit

Permalink
chore: restore default value of change-set option
Browse files Browse the repository at this point in the history
  • Loading branch information
msessa committed Jan 14, 2025
1 parent 4637127 commit a576887
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export async function makeConfig(): Promise<CliConfig> {
'fail': { type: 'boolean', desc: 'Fail with exit code 1 in case of diff' },
'processed': { type: 'boolean', desc: 'Whether to compare against the template with Transforms already processed', default: false },
'quiet': { type: 'boolean', alias: 'q', desc: 'Do not print stack name and default message when there is no diff to stdout', default: false },
'change-set': { type: 'boolean', alias: 'changeset', desc: 'Whether to create a changeset to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role', conflicts: 'mode', deprecated: 'Use mode=auto or mode=local instead' },
'change-set': { type: 'boolean', alias: 'changeset', desc: 'Whether to create a changeset to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role', conflicts: 'mode', deprecated: 'Use mode=auto or mode=local instead', default: true },
'mode': {
type: 'string',
choices: ['auto', 'change-set', 'template-only'],
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/parse-command-line-arguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ export function parseCommandLineArguments(args: Array<string>): any {
desc: 'Do not print stack name and default message when there is no diff to stdout',
})
.option('change-set', {
default: undefined,
default: true,
type: 'boolean',
alias: 'changeset',
desc: 'Whether to create a changeset to analyze resource replacements. In this mode, diff will use the deploy role instead of the lookup role',
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk/lib/user-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ export interface DiffOptions {
* aliases: changeset
*
* @deprecated Use mode=auto or mode=local instead
* @default - undefined
* @default - true
*/
readonly changeSet?: boolean;

Expand Down

0 comments on commit a576887

Please sign in to comment.