From 014ff949b7a8d62e246fd47f2addc48a37e362e2 Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 19 Apr 2021 15:46:40 +0200 Subject: [PATCH] fix(CLI): Recognize `--aws-profile` option by schema --- lib/cli/commands-schema/common-options/aws-service.js | 3 +++ test/unit/lib/cli/filter-supported-options.test.js | 1 + 2 files changed, 4 insertions(+) diff --git a/lib/cli/commands-schema/common-options/aws-service.js b/lib/cli/commands-schema/common-options/aws-service.js index 575071b5a..3d89b003c 100644 --- a/lib/cli/commands-schema/common-options/aws-service.js +++ b/lib/cli/commands-schema/common-options/aws-service.js @@ -5,6 +5,9 @@ module.exports = { usage: 'Region of the service', shortcut: 'r', }, + 'aws-profile': { + usage: 'AWS profile to use with the command', + }, 'app': { usage: 'Dashboard app' }, 'org': { usage: 'Dashboard org' }, 'use-local-credentials': { diff --git a/test/unit/lib/cli/filter-supported-options.test.js b/test/unit/lib/cli/filter-supported-options.test.js index ee58af5ad..ae0c4c8cb 100644 --- a/test/unit/lib/cli/filter-supported-options.test.js +++ b/test/unit/lib/cli/filter-supported-options.test.js @@ -49,6 +49,7 @@ describe('test/unit/lib/cli/filter-supported-options.test.js', () => { ) ).to.deep.equal({ 'region': 'elo', + 'aws-profile': null, 'help': null, 'version': null, 'config': null,