npm package diff
Package: @forge/cli-shared
Versions: 6.6.1-next.10 - 6.6.1-next.11
File: package/out/ui/command-line-ui.js
Index: package/out/ui/command-line-ui.js
===================================================================
--- package/out/ui/command-line-ui.js
+++ package/out/ui/command-line-ui.js
@@ -173,37 +173,18 @@
]);
const formattedChoice = config?.format ? choices[formattedChoices.indexOf(choice)] : choice;
return formattedChoice;
}
- async promptForMultiSelectList(message, choices, config) {
- const formattedChoices = config?.format ? choices.map((choice) => config?.format?.(choice)) : choices;
- const { selectedChoices } = await this.prompt([
- {
- type: 'checkbox',
- name: 'selectedChoices',
- choices: formattedChoices.map((choice, index) => ({
- name: choice,
- value: choice,
- index
- })),
- validate: (selected) => (selected.length === 0 ? text_1.Text.error.promptInputRequired : true),
- message
- }
- ]);
- const formattedSelectedChoices = config?.format
- ? selectedChoices.map((choice) => choices[formattedChoices.indexOf(choice)])
- : selectedChoices;
- return formattedSelectedChoices;
- }
- async promptForTable(message, infoMessage, columns, choices) {
+ async promptForTable(message, infoMessage, columns, choices, isBorderless) {
const { choice } = await this.prompt([
{
type: 'multiple-choice-table',
name: 'choice',
message,
infoMessage,
columns,
- choices
+ choices,
+ isBorderless
}
]);
return choice;
}