From faaabd2ab1312298837b6f27a84fb0100b37b833 Mon Sep 17 00:00:00 2001 From: Christopher Rybicki Date: Sun, 27 Feb 2022 17:28:23 -0800 Subject: [PATCH] fix(cli): cdk version displays notices --- packages/aws-cdk/lib/cli.ts | 2 +- packages/aws-cdk/test/integ/cli/cli.integtest.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/aws-cdk/lib/cli.ts b/packages/aws-cdk/lib/cli.ts index 3552ac10b2a42..f63c60ca5ced0 100644 --- a/packages/aws-cdk/lib/cli.ts +++ b/packages/aws-cdk/lib/cli.ts @@ -318,7 +318,7 @@ async function initCommandLine() { acknowledgedIssueNumbers: [], ignoreCache: true, }); - } else { + } else if (cmd !== 'version') { await displayNotices({ outdir: configuration.settings.get(['output']) ?? 'cdk.out', acknowledgedIssueNumbers: configuration.context.get('acknowledged-issue-numbers') ?? [], diff --git a/packages/aws-cdk/test/integ/cli/cli.integtest.ts b/packages/aws-cdk/test/integ/cli/cli.integtest.ts index 658bb7d355120..a0deaf1b3c3bc 100644 --- a/packages/aws-cdk/test/integ/cli/cli.integtest.ts +++ b/packages/aws-cdk/test/integ/cli/cli.integtest.ts @@ -32,7 +32,7 @@ integTest('Construct with builtin Lambda function', withDefaultFixture(async (fi await fixture.cdkDestroy('builtin-lambda-function'); })); -integTest('Two ways of shoing the version', withDefaultFixture(async (fixture) => { +integTest('Two ways of showing the version', withDefaultFixture(async (fixture) => { const version1 = await fixture.cdk(['version'], { verbose: false }); const version2 = await fixture.cdk(['--version'], { verbose: false });