You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(toolkit): by default hide AWS::CDK::Metadata from "cdk diff" (#1186)
`DifferenceCollection#filter` returns a new collection with changes filtered.
Changed `DifferenceCollection#count` to do a lazy calculation since now
`changes` is mutable.
The toolkit switch `cdk diff --strict` disables this behavior.
Fixes#465
Copy file name to clipboardExpand all lines: packages/aws-cdk/bin/cdk.ts
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,8 @@ async function parseCommandLineArguments() {
57
57
.command('destroy [STACKS..]','Destroy the stack(s) named STACKS',yargs=>yargs
58
58
.option('force',{type: 'boolean',alias: 'f',desc: 'Do not ask for confirmation before destroying the stacks'}))
59
59
.command('diff [STACK]','Compares the specified stack with the deployed stack or a local template file',yargs=>yargs
60
-
.option('template',{type: 'string',desc: 'the path to the CloudFormation template to compare with'}))
60
+
.option('template',{type: 'string',desc: 'the path to the CloudFormation template to compare with'})
61
+
.option('strict',{type: 'boolean',desc: 'do not filter out AWS::CDK::Metadata resources',default: false}))
61
62
.command('metadata [STACK]','Returns all metadata associated with this stack')
62
63
.command('init [TEMPLATE]','Create a new, empty CDK project from a template. Invoked without TEMPLATE, the app template will be used.',yargs=>yargs
63
64
.option('language',{type: 'string',alias: 'l',desc: 'the language to be used for the new project (default can be configured in ~/.cdk.json)',choices: initTemplateLanuages})
@@ -187,7 +188,7 @@ async function initCommandLine() {
0 commit comments