@axway/axway-central-cli 4.7.0-rc.0 → 4.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,8 +37,8 @@ const SensediaPrompts = {
|
|
|
37
37
|
enterClientId: 'Enter the Sensedia Client ID',
|
|
38
38
|
enterClientSecret: 'Enter the Sensedia Client Secret',
|
|
39
39
|
enterDeveloperEmail: 'Enter the Developer Email',
|
|
40
|
-
enterEnvironments: '
|
|
41
|
-
enterMoreEnvironments: '
|
|
40
|
+
enterEnvironments: 'Do you want to configure specific environments for discovery and reporting? If no value is provided, discovery occurs on all the environments',
|
|
41
|
+
enterMoreEnvironments: 'Enter an environment name (or press Enter to finish)',
|
|
42
42
|
invalidEnvironmentMessage: 'Commas are not allowed in the name due to the way the agent parses the environments list. Make sure you input one environment name at a time'
|
|
43
43
|
};
|
|
44
44
|
const askBundleType = async gateway => {
|
|
@@ -77,10 +77,14 @@ const askSensediaDeveloperEmail = async () => await (0, _basicPrompts.askInput)(
|
|
|
77
77
|
});
|
|
78
78
|
const askSensediaEnvironments = async () => {
|
|
79
79
|
let environments = [];
|
|
80
|
-
let
|
|
81
|
-
|
|
80
|
+
let addEnvironments = (await (0, _basicPrompts.askList)({
|
|
81
|
+
msg: SensediaPrompts.enterEnvironments,
|
|
82
|
+
default: _types.YesNo.No,
|
|
83
|
+
choices: _types.YesNoChoices
|
|
84
|
+
})) === _types.YesNo.Yes;
|
|
85
|
+
while (addEnvironments) {
|
|
82
86
|
const env = await (0, _basicPrompts.askInput)({
|
|
83
|
-
msg: SensediaPrompts.
|
|
87
|
+
msg: SensediaPrompts.enterMoreEnvironments,
|
|
84
88
|
validate: (0, _basicPrompts.validateRegex)(helpers.SensediaRegexPatterns.noCommaRegex, SensediaPrompts.invalidEnvironmentMessage),
|
|
85
89
|
allowEmptyInput: true
|
|
86
90
|
});
|
|
@@ -89,11 +93,6 @@ const askSensediaEnvironments = async () => {
|
|
|
89
93
|
} else {
|
|
90
94
|
return environments;
|
|
91
95
|
}
|
|
92
|
-
askMoreEnvironments = (await (0, _basicPrompts.askList)({
|
|
93
|
-
msg: SensediaPrompts.enterMoreEnvironments,
|
|
94
|
-
default: _types.YesNo.No,
|
|
95
|
-
choices: _types.YesNoChoices
|
|
96
|
-
})) === _types.YesNo.Yes;
|
|
97
96
|
}
|
|
98
97
|
return environments;
|
|
99
98
|
};
|