@sap-ux/cf-deploy-config-inquirer 0.1.26 → 0.2.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.
package/dist/index.d.ts
CHANGED
|
@@ -30,5 +30,5 @@ declare function getAppRouterPrompts(promptOptions: CfAppRouterDeployConfigPromp
|
|
|
30
30
|
* @returns the prompt answers
|
|
31
31
|
*/
|
|
32
32
|
declare function prompt(adapter: InquirerAdapter, promptOptions: CfDeployConfigPromptOptions, logger?: Logger): Promise<CfDeployConfigAnswers>;
|
|
33
|
-
export { getPrompts, type CfDeployConfigPromptOptions, type CfSystemChoice, promptNames, prompt, appRouterPromptNames, getAppRouterPrompts, type CfAppRouterDeployConfigPromptOptions, RouterModuleType, type CfAppRouterDeployConfigAnswers };
|
|
33
|
+
export { getPrompts, type CfDeployConfigPromptOptions, type CfSystemChoice, promptNames, prompt, appRouterPromptNames, getAppRouterPrompts, type CfAppRouterDeployConfigPromptOptions, RouterModuleType, type CfDeployConfigQuestions, type CfDeployConfigAnswers, type CfAppRouterDeployConfigAnswers };
|
|
34
34
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/prompts/prompts.js
CHANGED
|
@@ -90,7 +90,7 @@ async function getDestinationNamePrompt(destinationOptions) {
|
|
|
90
90
|
*
|
|
91
91
|
* @returns {ConfirmQuestion<CfDeployConfigAnswers>} Returns a confirmation question object for configuring the application router.
|
|
92
92
|
*/
|
|
93
|
-
function
|
|
93
|
+
function getAddManagedAppRouterPrompt() {
|
|
94
94
|
return {
|
|
95
95
|
type: 'confirm',
|
|
96
96
|
name: types_1.promptNames.addManagedAppRouter,
|
|
@@ -134,7 +134,7 @@ async function getQuestions(promptOptions, log) {
|
|
|
134
134
|
questions.push(await getDestinationNamePrompt(destinationOptions));
|
|
135
135
|
if (addManagedAppRouter) {
|
|
136
136
|
log?.info((0, i18n_1.t)('info.addManagedAppRouter'));
|
|
137
|
-
questions.push(
|
|
137
|
+
questions.push(getAddManagedAppRouterPrompt());
|
|
138
138
|
}
|
|
139
139
|
if (addOverwriteQuestion) {
|
|
140
140
|
log?.info((0, i18n_1.t)('info.overwriteDestination'));
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"emptyDestinationNameError": "You must provide a destination name in order to continue.",
|
|
26
26
|
"destinationNameError": "The destination name must only contain letters, digits, dashes and underscores.",
|
|
27
27
|
"destinationNameLengthError": "Destination name cannot contain more than 200 characters",
|
|
28
|
-
"folderDoesNotExistError": "Folder path does not exist: {{filePath}}",
|
|
28
|
+
"folderDoesNotExistError": "Folder path does not exist: {{- filePath}}",
|
|
29
29
|
"noMtaIdError": "MTA ID cannot be empty",
|
|
30
30
|
"invalidMtaIdError": "The ID can only contain letters, numbers, dashes, periods and underscores (but no spaces).",
|
|
31
31
|
"mtaIdAlreadyExistError": "A folder with same name already exist at {{- mtaPath}}",
|
package/dist/types.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export interface CfDeployConfigAnswers {
|
|
|
79
79
|
/** The selected Cloud Foundry destination. */
|
|
80
80
|
destinationName?: string;
|
|
81
81
|
/** Indicates whether the user opted to include a managed application router. */
|
|
82
|
-
|
|
82
|
+
addManagedAppRouter?: boolean;
|
|
83
83
|
/** Indicates whether the user opted to overwrite the destination. */
|
|
84
84
|
overwrite?: boolean;
|
|
85
85
|
}
|
|
@@ -119,9 +119,9 @@ export interface CfSystemChoice {
|
|
|
119
119
|
/** Value associated with the system choice. */
|
|
120
120
|
value: string;
|
|
121
121
|
/** Flag indicating if the system choice is an SCP destination. */
|
|
122
|
-
scp
|
|
122
|
+
scp?: boolean;
|
|
123
123
|
/** URL associated with the system choice. */
|
|
124
|
-
url
|
|
124
|
+
url?: string;
|
|
125
125
|
}
|
|
126
126
|
export {};
|
|
127
127
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/cf-deploy-config-inquirer",
|
|
3
3
|
"description": "Prompts module that can provide prompts for cf deployment config writer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|