@forge/cli-shared 3.2.0 → 3.2.1
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.
|
@@ -9,7 +9,6 @@ export declare class CommandLineUI implements UI {
|
|
|
9
9
|
private readonly verbose;
|
|
10
10
|
private readonly logger;
|
|
11
11
|
private readonly spinner;
|
|
12
|
-
private readonly prompt;
|
|
13
12
|
private insideProgress;
|
|
14
13
|
private addedProgressPadding;
|
|
15
14
|
constructor(verbose: () => boolean, spinner?: Ora, logger?: Console);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line-ui.d.ts","sourceRoot":"","sources":["../../src/ui/command-line-ui.ts"],"names":[],"mappings":";AAEA,OAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAM/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAWnD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,aAAc,YAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"command-line-ui.d.ts","sourceRoot":"","sources":["../../src/ui/command-line-ui.ts"],"names":[],"mappings":";AAEA,OAAY,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAM/B,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAWnD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,aAAc,YAAW,EAAE;IAyB1B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAxBpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAU;IAKjC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAM;IAG9B,OAAO,CAAC,cAAc,CAAS;IAc/B,OAAO,CAAC,oBAAoB,CAAS;gBAER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AAO,CAAC,MAAM,EAAE,CAAC;IAeP,0BAA0B,CACrC,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EAAE,EACjB,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,MAAM,CAAC;IAeX,KAAK,CAAC,GAAG,SAAS,MAAM,EAC7B,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EACrB,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,EACjD,EAAE,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAW,EAAE,GAAE,YAAY,CAAC,GAAG,CAAM,GACnF,IAAI;IAqCP,OAAO,CAAC,GAAG;IAqBX,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,yBAAyB;IAQjC,OAAO,CAAC,eAAe;YAaT,eAAe;IAa7B,OAAO,CAAC,wBAAwB;CAIjC"}
|
|
@@ -25,7 +25,6 @@ class CommandLineUI {
|
|
|
25
25
|
this.addedProgressPadding = false;
|
|
26
26
|
this.spinner = spinner || ora_1.default({ discardStdin: false });
|
|
27
27
|
this.logger = logger || console;
|
|
28
|
-
this.prompt = inquirer_1.default.createPromptModule({ skipTTYChecks: false });
|
|
29
28
|
this.registerCustomUIElements();
|
|
30
29
|
}
|
|
31
30
|
get traceEnabled() {
|
|
@@ -132,7 +131,7 @@ class CommandLineUI {
|
|
|
132
131
|
this.log('');
|
|
133
132
|
}
|
|
134
133
|
async confirm(message) {
|
|
135
|
-
const { choice } = await
|
|
134
|
+
const { choice } = await inquirer_1.default.prompt([
|
|
136
135
|
{
|
|
137
136
|
type: 'confirm',
|
|
138
137
|
name: 'choice',
|
|
@@ -149,7 +148,7 @@ class CommandLineUI {
|
|
|
149
148
|
return this.promptForString(message, true);
|
|
150
149
|
}
|
|
151
150
|
async promptForList(message, choices) {
|
|
152
|
-
const { choice } = await
|
|
151
|
+
const { choice } = await inquirer_1.default.prompt([
|
|
153
152
|
{
|
|
154
153
|
type: 'list',
|
|
155
154
|
name: 'choice',
|
|
@@ -160,7 +159,7 @@ class CommandLineUI {
|
|
|
160
159
|
return choice;
|
|
161
160
|
}
|
|
162
161
|
async promptForTable(message, infoMessage, columns, choices) {
|
|
163
|
-
const { choice } = await
|
|
162
|
+
const { choice } = await inquirer_1.default.prompt([
|
|
164
163
|
{
|
|
165
164
|
type: 'multiple-choice-table',
|
|
166
165
|
name: 'choice',
|
|
@@ -173,7 +172,7 @@ class CommandLineUI {
|
|
|
173
172
|
return choice;
|
|
174
173
|
}
|
|
175
174
|
async promptForSingleChoiceTable(message, infoMessage, columns, choices) {
|
|
176
|
-
const { choice } = await
|
|
175
|
+
const { choice } = await inquirer_1.default.prompt([
|
|
177
176
|
{
|
|
178
177
|
type: 'single-choice-table',
|
|
179
178
|
name: 'choice',
|
|
@@ -274,7 +273,7 @@ class CommandLineUI {
|
|
|
274
273
|
}
|
|
275
274
|
}
|
|
276
275
|
async promptForString(message, secret, defaultValue) {
|
|
277
|
-
const { text } = await
|
|
276
|
+
const { text } = await inquirer_1.default.prompt([
|
|
278
277
|
{
|
|
279
278
|
type: secret ? 'password' : 'input',
|
|
280
279
|
name: 'text',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"graphql": "^15.8.0",
|
|
31
31
|
"graphql-request": "3.4.0",
|
|
32
32
|
"ignore-walk": "^3.0.3",
|
|
33
|
-
"inquirer": "^
|
|
33
|
+
"inquirer": "^7.0.4",
|
|
34
34
|
"io-ts": "^2.0.6",
|
|
35
35
|
"keytar": "^7.9.0",
|
|
36
36
|
"launchdarkly-node-client-sdk": "^2.0.3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/fs-extra": "^8.0.1",
|
|
55
55
|
"@types/get-folder-size": "^2.0.0",
|
|
56
56
|
"@types/ignore-walk": "^3.0.1",
|
|
57
|
-
"@types/inquirer": "^
|
|
57
|
+
"@types/inquirer": "^6.5.0",
|
|
58
58
|
"@types/jest": "^26.0.0",
|
|
59
59
|
"@types/js-yaml": "^3.12.2",
|
|
60
60
|
"@types/node-fetch": "^2.5.7",
|