@forge/cli-shared 3.13.0-next.6 → 3.13.0-next.7
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/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-environment-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/app-environment-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"app-environment-graphql-client.d.ts","sourceRoot":"","sources":["../../src/graphql/app-environment-graphql-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAGrD,qBAAa,eAAgB,SAAQ,SAAS;;CAI7C;AAED,qBAAa,0BAA2B,SAAQ,SAAS;gBAC3C,MAAM,EAAE,MAAM;CAG3B;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,kBAAkB,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAChF,wBAAwB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACrG;AAED,qBAAa,4BAA6B,YAAW,oBAAoB;IAC3D,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAE5C,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IA2B3E,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAiC9G"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AppEnvironmentsGraphqlClient = exports.MissingAppEnvironmentError = exports.MissingAppError = void 0;
|
|
4
4
|
const ui_1 = require("../ui");
|
|
5
5
|
const error_handling_1 = require("../shared/error-handling");
|
|
6
|
+
const environment_1 = require("../shared/environment");
|
|
6
7
|
class MissingAppError extends error_handling_1.UserError {
|
|
7
8
|
constructor() {
|
|
8
9
|
super(ui_1.Text.env.error.appNotExist);
|
|
@@ -11,7 +12,7 @@ class MissingAppError extends error_handling_1.UserError {
|
|
|
11
12
|
exports.MissingAppError = MissingAppError;
|
|
12
13
|
class MissingAppEnvironmentError extends error_handling_1.UserError {
|
|
13
14
|
constructor(envKey) {
|
|
14
|
-
super(ui_1.Text.env.error.envNotExist(envKey));
|
|
15
|
+
super(ui_1.Text.env.error.envNotExist(envKey, environment_1.environmentToOption));
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
exports.MissingAppEnvironmentError = MissingAppEnvironmentError;
|
package/out/ui/text.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { URL } from 'url';
|
|
2
2
|
import { AppEnvironmentType } from '../graphql/graphql-types';
|
|
3
|
+
declare type EnvironmentToOption = (environment: string) => string;
|
|
3
4
|
export interface AddedScope {
|
|
4
5
|
name: string;
|
|
5
6
|
requiresInteractiveConsent?: boolean;
|
|
@@ -146,7 +147,7 @@ export declare const Text: {
|
|
|
146
147
|
desc: string;
|
|
147
148
|
start: string;
|
|
148
149
|
success: (appName: string) => string;
|
|
149
|
-
successDetails: (directory: string, validEnvironmentOptions: string[]) => string;
|
|
150
|
+
successDetails: (directory: string, validEnvironmentOptions: string[], environmentToOption: EnvironmentToOption) => string;
|
|
150
151
|
};
|
|
151
152
|
intro: (givenDirectory: string) => string;
|
|
152
153
|
introWithCurrentDirectory: (currentDirectory: string) => string;
|
|
@@ -194,20 +195,20 @@ export declare const Text: {
|
|
|
194
195
|
desc: string;
|
|
195
196
|
start: string;
|
|
196
197
|
success: (appName: string) => string;
|
|
197
|
-
successDetails: (validEnvironmentOptions: string[]) => string;
|
|
198
|
+
successDetails: (validEnvironmentOptions: string[], environmentToOption: EnvironmentToOption) => string;
|
|
198
199
|
};
|
|
199
200
|
confirmQuestion: string;
|
|
200
201
|
};
|
|
201
202
|
env: {
|
|
202
203
|
option: string;
|
|
203
204
|
invalid: string;
|
|
204
|
-
developmentOnly: (envKey: string) => string;
|
|
205
|
+
developmentOnly: (envKey: string, environmentToOption: EnvironmentToOption) => string;
|
|
205
206
|
error: {
|
|
206
207
|
appOwnerNotExist: string;
|
|
207
208
|
appNotExist: string;
|
|
208
|
-
envNotExist: (envKey: string) => string;
|
|
209
|
+
envNotExist: (envKey: string, environmentToOption: EnvironmentToOption) => string;
|
|
209
210
|
};
|
|
210
|
-
displayEnvironment: (envKey: string, envType: AppEnvironmentType) => string;
|
|
211
|
+
displayEnvironment: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
211
212
|
warn: {
|
|
212
213
|
envWillBeCreated: (envKey: string) => string;
|
|
213
214
|
};
|
|
@@ -218,8 +219,8 @@ export declare const Text: {
|
|
|
218
219
|
prompt: string;
|
|
219
220
|
warn: string;
|
|
220
221
|
confirm: string;
|
|
221
|
-
setSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
222
|
-
createAndSetSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
222
|
+
setSuccess: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
223
|
+
createAndSetSuccess: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
223
224
|
settingsInfo: string;
|
|
224
225
|
};
|
|
225
226
|
varsSet: {
|
|
@@ -228,7 +229,7 @@ export declare const Text: {
|
|
|
228
229
|
start: string;
|
|
229
230
|
success: string;
|
|
230
231
|
};
|
|
231
|
-
overview: (environment: string, environmentType: AppEnvironmentType) => string;
|
|
232
|
+
overview: (environment: string, environmentType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
232
233
|
encryptInfo: string;
|
|
233
234
|
promptEncrypt: string;
|
|
234
235
|
keyInfo: string;
|
|
@@ -241,16 +242,16 @@ export declare const Text: {
|
|
|
241
242
|
varsUnset: {
|
|
242
243
|
cmd: {
|
|
243
244
|
desc: string;
|
|
244
|
-
start: (environment: string, envType: AppEnvironmentType) => string;
|
|
245
|
+
start: (environment: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
245
246
|
success: (key: string) => string;
|
|
246
247
|
};
|
|
247
248
|
};
|
|
248
249
|
varsList: {
|
|
249
250
|
hint: string;
|
|
250
251
|
cmd: string;
|
|
251
|
-
empty: (environment: string, envType: AppEnvironmentType) => string;
|
|
252
|
+
empty: (environment: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
252
253
|
encryptedValue: string;
|
|
253
|
-
overview: (environment: string, envType: AppEnvironmentType) => string;
|
|
254
|
+
overview: (environment: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
254
255
|
postfix: string;
|
|
255
256
|
};
|
|
256
257
|
providers: {
|
|
@@ -262,7 +263,7 @@ export declare const Text: {
|
|
|
262
263
|
start: string;
|
|
263
264
|
success: string;
|
|
264
265
|
};
|
|
265
|
-
overview: (environment: string) => string;
|
|
266
|
+
overview: (environment: string, environmentToOption: EnvironmentToOption) => string;
|
|
266
267
|
providerKeyInfo: string;
|
|
267
268
|
noProviders: string;
|
|
268
269
|
promptProviderKey: string;
|
|
@@ -276,7 +277,7 @@ export declare const Text: {
|
|
|
276
277
|
cmd: {
|
|
277
278
|
desc: string;
|
|
278
279
|
start: string;
|
|
279
|
-
success: (envKey: string, envType: AppEnvironmentType) => string;
|
|
280
|
+
success: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
280
281
|
};
|
|
281
282
|
overview: string;
|
|
282
283
|
promptEnvironmentKey: string;
|
|
@@ -299,12 +300,12 @@ export declare const Text: {
|
|
|
299
300
|
prompt: string;
|
|
300
301
|
confirmationInfo: string;
|
|
301
302
|
promptConfirmation: string;
|
|
302
|
-
individualSuccessMessage: (envKey: string, envType: AppEnvironmentType) => string;
|
|
303
|
+
individualSuccessMessage: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
303
304
|
successMessage: string;
|
|
304
305
|
optionEnvironmentKey: string;
|
|
305
306
|
warningMessage: string;
|
|
306
307
|
noEnvironmentMessage: string;
|
|
307
|
-
hasInstallationError: (envKey: string) => string;
|
|
308
|
+
hasInstallationError: (envKey: string, environmentToOption: EnvironmentToOption) => string;
|
|
308
309
|
};
|
|
309
310
|
storage: {
|
|
310
311
|
cmd: {
|
|
@@ -386,10 +387,10 @@ export declare const Text: {
|
|
|
386
387
|
deploy: {
|
|
387
388
|
cmd: {
|
|
388
389
|
desc: string;
|
|
389
|
-
start1: (envKey: string,
|
|
390
|
-
start2: (appName: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
390
|
+
start1: (envKey: string, environmentToOption: EnvironmentToOption) => string;
|
|
391
|
+
start2: (appName: string, envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
391
392
|
success: string;
|
|
392
|
-
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
393
|
+
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
393
394
|
distributePageLink: (appId: string) => string;
|
|
394
395
|
};
|
|
395
396
|
taskLint: {
|
|
@@ -437,7 +438,7 @@ export declare const Text: {
|
|
|
437
438
|
install: {
|
|
438
439
|
cmd: {
|
|
439
440
|
description: string;
|
|
440
|
-
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
441
|
+
start: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
441
442
|
end: (displayTick: boolean) => string;
|
|
442
443
|
};
|
|
443
444
|
booleanToScope: (isLatest: boolean) => string;
|
|
@@ -446,12 +447,11 @@ export declare const Text: {
|
|
|
446
447
|
optionUpgrade: string;
|
|
447
448
|
listScopes: (scopes: AddedScope[]) => string;
|
|
448
449
|
listEgressAddresses: (egressAddresses: string[]) => string;
|
|
449
|
-
permissionMismatchCommandSuggestion: (environment: string) => string;
|
|
450
450
|
permissionsMismatch: (environment: string) => string;
|
|
451
|
-
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string) => string;
|
|
451
|
+
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string, environmentToOption: EnvironmentToOption) => string;
|
|
452
452
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
453
453
|
success: {
|
|
454
|
-
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
454
|
+
banner: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption, product: string, site: string) => string;
|
|
455
455
|
};
|
|
456
456
|
error: {
|
|
457
457
|
invalidAtlassianSite: (url: URL) => string;
|
|
@@ -460,7 +460,7 @@ export declare const Text: {
|
|
|
460
460
|
site: (url: string) => string;
|
|
461
461
|
alreadyInstalledError: string;
|
|
462
462
|
serverSideInstallationError: (message: string) => string;
|
|
463
|
-
noDeploymentFound: (
|
|
463
|
+
noDeploymentFound: (environmentOption: string) => string;
|
|
464
464
|
permissionsDeniedInstructions: (requestId: string, appId: string) => string;
|
|
465
465
|
};
|
|
466
466
|
security: {
|
|
@@ -481,7 +481,7 @@ export declare const Text: {
|
|
|
481
481
|
upgrade: {
|
|
482
482
|
banner: string;
|
|
483
483
|
cmd: {
|
|
484
|
-
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
484
|
+
start: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
485
485
|
end: (displayTick: boolean) => string;
|
|
486
486
|
error: string;
|
|
487
487
|
};
|
|
@@ -490,11 +490,11 @@ export declare const Text: {
|
|
|
490
490
|
permissionsMismatch: (environment: string) => string;
|
|
491
491
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
492
492
|
success: {
|
|
493
|
-
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
493
|
+
banner: (envKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption, product: string, site: string) => string;
|
|
494
494
|
};
|
|
495
495
|
alreadyUpdated: {
|
|
496
496
|
spinner: string;
|
|
497
|
-
banner: (environment: string, product: string, site: string) => string;
|
|
497
|
+
banner: (environment: string, environmentToOption: EnvironmentToOption, product: string, site: string) => string;
|
|
498
498
|
};
|
|
499
499
|
error: {
|
|
500
500
|
serverSideInstallationError: (message: string) => string;
|
|
@@ -510,7 +510,7 @@ export declare const Text: {
|
|
|
510
510
|
cmd: string;
|
|
511
511
|
optionDebugger: string;
|
|
512
512
|
preamble: string;
|
|
513
|
-
startingTunnel: (environmentKey: string, envType: AppEnvironmentType) => string;
|
|
513
|
+
startingTunnel: (environmentKey: string, envType: AppEnvironmentType, environmentToOption: EnvironmentToOption) => string;
|
|
514
514
|
startedServer: (port: number, isDebug: boolean) => string;
|
|
515
515
|
startedTunnel: (tunnelUrl: string) => string;
|
|
516
516
|
stoppingTunnel: string;
|
|
@@ -572,8 +572,8 @@ export declare const Text: {
|
|
|
572
572
|
done: string;
|
|
573
573
|
};
|
|
574
574
|
info: string;
|
|
575
|
-
done: (product: string, domain: string, environment: string, isMulti: boolean) => string;
|
|
576
|
-
failed: (product: string, domain: string, environment: string) => string;
|
|
575
|
+
done: (product: string, domain: string, environment: string, environmentToOption: EnvironmentToOption, isMulti: boolean) => string;
|
|
576
|
+
failed: (product: string, domain: string, environment: string, environmentToOption: EnvironmentToOption) => string;
|
|
577
577
|
missingUninstallTask: string;
|
|
578
578
|
};
|
|
579
579
|
webtrigger: {
|
|
@@ -660,4 +660,5 @@ export declare const Text: {
|
|
|
660
660
|
};
|
|
661
661
|
};
|
|
662
662
|
};
|
|
663
|
+
export {};
|
|
663
664
|
//# sourceMappingURL=text.d.ts.map
|
package/out/ui/text.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAI1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG9D,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAmBD,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,MAAsD,CAAC;AAoDjG,eAAO,MAAM,IAAI;;;;;6BAiBM,MAAM;2BACR,MAAM;6BAGJ,MAAM;+BAEJ,MAAM;;wCAIK,MAAM,UAAU,MAAM;qDAOT,MAAM,sBAAsB,MAAM;;;;6CAa1C,MAAM,YAAY,MAAM,YAAY,MAAM;;;qCAQlD,GAAG,WAAW,QAAQ,GAAG,CAAC;kDAEb,MAAM,EAAE;gDAKV,MAAM,aAAa,MAAM;8CAG3B,MAAM,aAAa,MAAM;;iCAKtC,MAAM;;;yCAKE,MAAM;;;mDAYI,MAAM,yBAAyB,MAAM;;;;;;;;;;;;;;uCAsB/C,MAAM,EAAE;;;0BAIrB,MAAM,KAAG,MAAM;;;;;uBAQpB,MAAM,SAAS,MAAM,aAAa,MAAM;2BAEpC,MAAM,cAAc,MAAM;;;;;2BAY1B,MAAM,gBAAgB,MAAM;;;;8BAMzB,MAAM;;4DAEwB,MAAM,aAAa,MAAM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;yBAKlE,MAAM,WAAW,MAAM;;;;qCAQb,MAAM;qCACN,MAAM,gBAAgB,OAAO;;;yCAMzB,MAAM;qCACV,MAAM;;;;;;;;;;;;;;;;+BAwBZ,MAAM,SAAS,MAAM;;;;;;;;;;;;;;;6CAgBP,MAAM,mBAAmB,MAAM,EAAE;;;;CAOvE,CAAC"}
|
package/out/ui/text.js
CHANGED
|
@@ -195,8 +195,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
195
195
|
desc: 'create an app',
|
|
196
196
|
start: 'Creating app...',
|
|
197
197
|
success: (appName) => `Created ${appName}`,
|
|
198
|
-
successDetails: (directory, validEnvironmentOptions) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
|
|
199
|
-
.map(
|
|
198
|
+
successDetails: (directory, validEnvironmentOptions, environmentToOption) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
|
|
199
|
+
.map(environmentToOption)
|
|
200
200
|
.join(', ')}.\n\nChange to directory ${chalk_1.default.bold(directory)} to see your app files.`
|
|
201
201
|
},
|
|
202
202
|
intro: (givenDirectory) => `Creating an app in directory ${chalk_1.default.bold(givenDirectory)}.\n`,
|
|
@@ -246,8 +246,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
246
246
|
desc: "register an app you didn't create so you can run commands for it",
|
|
247
247
|
start: `Registering app...`,
|
|
248
248
|
success: (appName) => `Registered ${appName}`,
|
|
249
|
-
successDetails: (validEnvironmentOptions) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
|
|
250
|
-
.map(
|
|
249
|
+
successDetails: (validEnvironmentOptions, environmentToOption) => `\nYour app is ready to work on, deploy, and install. We created ${validEnvironmentOptions.length} environments you can deploy to: ${validEnvironmentOptions
|
|
250
|
+
.map(environmentToOption)
|
|
251
251
|
.join(', ')}.\n\nUse ${chalk_1.default.bold('forge deploy')} to deploy your app to an environment.`
|
|
252
252
|
},
|
|
253
253
|
confirmQuestion: 'Are you sure you want to overwrite the existing app details?'
|
|
@@ -255,19 +255,19 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
255
255
|
env: {
|
|
256
256
|
option: 'specify the environment (defaults to your development environment)',
|
|
257
257
|
invalid: 'Invalid environment name',
|
|
258
|
-
developmentOnly: (envKey) => `${
|
|
258
|
+
developmentOnly: (envKey, environmentToOption) => `${environmentToOption(envKey)} cannot be set as default environment. Only development environments can be used.`,
|
|
259
259
|
error: {
|
|
260
260
|
appOwnerNotExist: 'Missing app owner details',
|
|
261
261
|
appNotExist: `Your app could not be found. Make sure the app details in the manifest.yml file are correct before trying again.`,
|
|
262
|
-
envNotExist: (envKey) => `Environment ${chalk_1.default.bold(
|
|
262
|
+
envNotExist: (envKey, environmentToOption) => `Environment ${chalk_1.default.bold(environmentToOption(envKey))} does not exist. Check the environment name and try again.`
|
|
263
263
|
},
|
|
264
|
-
displayEnvironment: (envKey, envType) => {
|
|
264
|
+
displayEnvironment: (envKey, envType, environmentToOption) => {
|
|
265
265
|
if (envType === graphql_types_1.AppEnvironmentType.Development &&
|
|
266
266
|
envKey !== environment_1.DEFAULT_ENVIRONMENT_KEY &&
|
|
267
267
|
envKey !== environment_1.DEFAULT_ENVIRONMENT_OPTION) {
|
|
268
|
-
return `${chalk_1.default.gray('DEV')} ${
|
|
268
|
+
return `${chalk_1.default.gray('DEV')} ${environmentToOption(envKey)}`;
|
|
269
269
|
}
|
|
270
|
-
return
|
|
270
|
+
return environmentToOption(envKey);
|
|
271
271
|
},
|
|
272
272
|
warn: {
|
|
273
273
|
envWillBeCreated: (envKey) => `${chalk_1.default.bold('Warning:')} Environment ${chalk_1.default.bold((0, environment_1.environmentToOption)(envKey))} does not exist. If you continue, this development environment will be created for you.`
|
|
@@ -279,8 +279,8 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
279
279
|
prompt: 'Enter a name for your default development environment:',
|
|
280
280
|
warn: `${chalk_1.default.bold('Warning:')} A development environment with this name already exists. If you continue, you may be using the same environment as another contributor.`,
|
|
281
281
|
confirm: 'Do you want to continue?',
|
|
282
|
-
setSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been set as your default development environment`,
|
|
283
|
-
createAndSetSuccess: (envKey, envType) => `${exports.Text.env.displayEnvironment(envKey, envType)} has been created and set as your default development environment`,
|
|
282
|
+
setSuccess: (envKey, envType, environmentToOption) => `${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)} has been set as your default development environment`,
|
|
283
|
+
createAndSetSuccess: (envKey, envType, environmentToOption) => `${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)} has been created and set as your default development environment`,
|
|
284
284
|
settingsInfo: `You can change your default development environment later by running ${chalk_1.default.bold('forge settings set')}.`
|
|
285
285
|
},
|
|
286
286
|
varsSet: {
|
|
@@ -289,7 +289,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
289
289
|
start: 'Setting environment variable...',
|
|
290
290
|
success: 'Environment variable set.'
|
|
291
291
|
},
|
|
292
|
-
overview: (environment, environmentType) => `Setting the value of a variable in the ${exports.Text.env.displayEnvironment(environment, environmentType)} environment.`,
|
|
292
|
+
overview: (environment, environmentType, environmentToOption) => `Setting the value of a variable in the ${exports.Text.env.displayEnvironment(environment, environmentType, environmentToOption)} environment.`,
|
|
293
293
|
encryptInfo: 'Encrypting a variable means that the value will not be shown in the terminal.',
|
|
294
294
|
promptEncrypt: `Select if you want the value encrypted:`,
|
|
295
295
|
keyInfo: 'Use a new key to create a variable, or use an existing key to override a variable.',
|
|
@@ -302,16 +302,16 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
302
302
|
varsUnset: {
|
|
303
303
|
cmd: {
|
|
304
304
|
desc: 'remove an environment variable',
|
|
305
|
-
start: (environment, envType) => `Unsetting the variable in the ${exports.Text.env.displayEnvironment(environment, envType)} environment.`,
|
|
305
|
+
start: (environment, envType, environmentToOption) => `Unsetting the variable in the ${exports.Text.env.displayEnvironment(environment, envType, environmentToOption)} environment.`,
|
|
306
306
|
success: (key) => `\n${greenTick} ${key} variable removed.`
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
309
|
varsList: {
|
|
310
310
|
hint: `\nRun ${chalk_1.default.bold('forge variables list')} to see your environment variables.\n`,
|
|
311
311
|
cmd: 'list the environment variables',
|
|
312
|
-
empty: (environment, envType) => `There are no variables in the ${exports.Text.env.displayEnvironment(environment, envType)} environment.\n\nUse ${chalk_1.default.bold('forge variables set')} to create a variable.\n`,
|
|
312
|
+
empty: (environment, envType, environmentToOption) => `There are no variables in the ${exports.Text.env.displayEnvironment(environment, envType, environmentToOption)} environment.\n\nUse ${chalk_1.default.bold('forge variables set')} to create a variable.\n`,
|
|
313
313
|
encryptedValue,
|
|
314
|
-
overview: (environment, envType) => `Showing variables from the ${exports.Text.env.displayEnvironment(environment, envType)} environment:\n`,
|
|
314
|
+
overview: (environment, envType, environmentToOption) => `Showing variables from the ${exports.Text.env.displayEnvironment(environment, envType, environmentToOption)} environment:\n`,
|
|
315
315
|
postfix: `\nNote, the values of encrypted variables are shown as ${encryptedValue}.\n`
|
|
316
316
|
},
|
|
317
317
|
providers: {
|
|
@@ -323,7 +323,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
323
323
|
start: 'Configuring provider credentials...',
|
|
324
324
|
success: 'oauth provider credentials configuration is finished.'
|
|
325
325
|
},
|
|
326
|
-
overview: (environment) => `Configuring provider in the ${
|
|
326
|
+
overview: (environment, environmentToOption) => `Configuring provider in the ${environmentToOption(environment)} environment.`,
|
|
327
327
|
providerKeyInfo: 'Use a provider key from the list for configuration.',
|
|
328
328
|
noProviders: "Count't find providers in the manifest file. Add one.",
|
|
329
329
|
promptProviderKey: 'Select provider to configure:',
|
|
@@ -337,7 +337,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
337
337
|
cmd: {
|
|
338
338
|
desc: 'create a new development environment',
|
|
339
339
|
start: 'Creating environment...',
|
|
340
|
-
success: (envKey, envType) => `Created ${exports.Text.env.displayEnvironment(envKey, envType)}`
|
|
340
|
+
success: (envKey, envType, environmentToOption) => `Created ${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)}`
|
|
341
341
|
},
|
|
342
342
|
overview: 'Create a new development environment.',
|
|
343
343
|
promptEnvironmentKey: 'Enter a name for your environment:',
|
|
@@ -360,12 +360,12 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
360
360
|
prompt: 'Select development environment:',
|
|
361
361
|
confirmationInfo: 'You are deleting the following environment(s):',
|
|
362
362
|
promptConfirmation: 'Do you want to continue?',
|
|
363
|
-
individualSuccessMessage: (envKey, envType) => `${log_symbols_1.default.info} ${exports.Text.env.displayEnvironment(envKey, envType)} deleted successfully.`,
|
|
363
|
+
individualSuccessMessage: (envKey, envType, environmentToOption) => `${log_symbols_1.default.info} ${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)} deleted successfully.`,
|
|
364
364
|
successMessage: 'Environment(s) deleted.',
|
|
365
365
|
optionEnvironmentKey: 'specify the environment to delete',
|
|
366
366
|
warningMessage: `${chalk_1.default.bold('Warning:')} When deleting a development environment, you may impact in progress deployments or tunnels.`,
|
|
367
367
|
noEnvironmentMessage: 'There are no development environments to delete.',
|
|
368
|
-
hasInstallationError: (envKey) => `${
|
|
368
|
+
hasInstallationError: (envKey, environmentToOption) => `${environmentToOption(envKey)} cannot be deleted because the environment is installed on a site. You can show all the current installations of your app by running ${chalk_1.default.bold('forge install list')}.`
|
|
369
369
|
},
|
|
370
370
|
storage: {
|
|
371
371
|
cmd: {
|
|
@@ -447,10 +447,10 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
447
447
|
deploy: {
|
|
448
448
|
cmd: {
|
|
449
449
|
desc: 'deploy your app to an environment',
|
|
450
|
-
start1: (envKey,
|
|
451
|
-
start2: (appName, envKey, envType) => `Deploying ${appName} to ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
450
|
+
start1: (envKey, environmentToOption) => `Deploying your app to the ${environmentToOption(envKey)} environment.\n${ctrlC}\n`,
|
|
451
|
+
start2: (appName, envKey, envType, environmentToOption) => `Deploying ${appName} to ${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)}...`,
|
|
452
452
|
success: 'Deployed\n',
|
|
453
|
-
successDetails: (appName, envKey, envType) => `Deployed ${appName} to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.`,
|
|
453
|
+
successDetails: (appName, envKey, envType, environmentToOption) => `Deployed ${appName} to the ${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)} environment.`,
|
|
454
454
|
distributePageLink: (appId) => `To install on a site that you're an admin of, run ${chalk_1.default.bold('forge install')}.\n` +
|
|
455
455
|
'To install on any other site, generate an installation link in the developer console and share it with the site admin: ' +
|
|
456
456
|
`https://developer.atlassian.com/console/myapps/${appId}/distribution`
|
|
@@ -498,7 +498,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
498
498
|
outdatedInstallations: `We've detected new scopes or egress URLs in your app.\n` +
|
|
499
499
|
`Run ${chalk_1.default.bold('forge install --upgrade')} and restart your tunnel to put them into effect.`,
|
|
500
500
|
listIndexes: (environment) => {
|
|
501
|
-
const indexCommand = chalk_1.default.bold(`forge storage entities indexes list -e ${
|
|
501
|
+
const indexCommand = chalk_1.default.bold(`forge storage entities indexes list -e ${environment}`);
|
|
502
502
|
return (`Run ${indexCommand} to check the status of the indexes.`);
|
|
503
503
|
},
|
|
504
504
|
egressURL: {
|
|
@@ -545,7 +545,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
545
545
|
install: {
|
|
546
546
|
cmd: {
|
|
547
547
|
description: 'manage app installations',
|
|
548
|
-
start: (envKey, envType) => `Installing your app on to ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
548
|
+
start: (envKey, envType, environmentToOption) => `Installing your app on to ${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)}...`,
|
|
549
549
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Install complete!`
|
|
550
550
|
},
|
|
551
551
|
booleanToScope: (isLatest) => (isLatest ? `Latest` : `Out-of-date`),
|
|
@@ -556,18 +556,17 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
556
556
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires interactive consent)' : ''}`)
|
|
557
557
|
.join('\n')}\n`,
|
|
558
558
|
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
.map((product) => `- forge install --upgrade -p ${(0, case_1.capital)(product)} -s ${site} -e ${(0, environment_1.environmentToOption)(environment)}`)
|
|
559
|
+
permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${environment}. Try running ${chalk_1.default.bold(`forge deploy -e ${environment}`)} before installing.\n`,
|
|
560
|
+
multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment, environmentToOption) => `\nWe detected your app requires scopes across multiple products.\nRun ${chalk_1.default.bold('forge install')} for each of the following:\n${productsToUpgrade
|
|
561
|
+
.map((product) => `- forge install --upgrade -p ${(0, case_1.capital)(product)} -s ${site} -e ${environmentToOption(environment)}`)
|
|
563
562
|
.join('\n')}${productsToUpgrade.length !== 0 && productsToInstall.length !== 0 ? '\n' : ''}${productsToInstall
|
|
564
|
-
.map((product) => `- forge install -p ${(0, case_1.capital)(product)} -s ${site} -e ${
|
|
563
|
+
.map((product) => `- forge install -p ${(0, case_1.capital)(product)} -s ${site} -e ${environmentToOption(environment)}`)
|
|
565
564
|
.join('\n')}`,
|
|
566
565
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment) => permissionsMismatchInDevelopment
|
|
567
566
|
? 'Are you sure you want to continue installing the app?'
|
|
568
567
|
: 'Do you want to continue?',
|
|
569
568
|
success: {
|
|
570
|
-
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now installed in ${product} on ${buildTerminalLink(site)}`
|
|
569
|
+
banner: (envKey, envType, environmentToOption, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)} environment is now installed in ${product} on ${buildTerminalLink(site)}`
|
|
571
570
|
},
|
|
572
571
|
error: {
|
|
573
572
|
invalidAtlassianSite: (url) => `The URL you entered doesn't belong to an Atlassian site: ` +
|
|
@@ -580,7 +579,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
580
579
|
site: (url) => `Site is invalid: ${url}`,
|
|
581
580
|
alreadyInstalledError: `Installation error: App is already installed.\nIf you're trying to upgrade your app, use the ${chalk_1.default.bold('forge install --upgrade')} command.`,
|
|
582
581
|
serverSideInstallationError: (message) => `Installation error: ${message}`,
|
|
583
|
-
noDeploymentFound: (
|
|
582
|
+
noDeploymentFound: (environmentOption) => `Forge apps must be deployed before installation. Deploy your app by running ${chalk_1.default.bold(`forge deploy -e ${environmentOption}`)}.`,
|
|
584
583
|
permissionsDeniedInstructions: (requestId, appId) => `Insufficient permissions to install app (requestId: ${requestId})` +
|
|
585
584
|
'\n\nTo install the app on this site, generate an installation link ' +
|
|
586
585
|
'in the developer console and share it with the site admin: ' +
|
|
@@ -616,7 +615,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
616
615
|
upgrade: {
|
|
617
616
|
banner: `\nUpgrading your app on the Atlassian site.\n`,
|
|
618
617
|
cmd: {
|
|
619
|
-
start: (envKey, envType) => `Upgrading your app in ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
618
|
+
start: (envKey, envType, environmentToOption) => `Upgrading your app in ${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)}...`,
|
|
620
619
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Upgrade complete!`,
|
|
621
620
|
error: `Upgrade failed`
|
|
622
621
|
},
|
|
@@ -629,11 +628,11 @@ ${buildTerminalLink(link)}\n`,
|
|
|
629
628
|
? 'Are you sure you want to continue upgrading the app?'
|
|
630
629
|
: 'Do you want to continue?',
|
|
631
630
|
success: {
|
|
632
|
-
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now the latest in ${product} on ${buildTerminalLink(site)}.`
|
|
631
|
+
banner: (envKey, envType, environmentToOption, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType, environmentToOption)} environment is now the latest in ${product} on ${buildTerminalLink(site)}.`
|
|
633
632
|
},
|
|
634
633
|
alreadyUpdated: {
|
|
635
634
|
spinner: 'Site is already at the latest version',
|
|
636
|
-
banner: (environment, product, site) => `\nYour app in the ${
|
|
635
|
+
banner: (environment, environmentToOption, product, site) => `\nYour app in the ${environmentToOption(environment)} environment is at the latest in ${product} on ${buildTerminalLink(site)}.`
|
|
637
636
|
},
|
|
638
637
|
error: {
|
|
639
638
|
serverSideInstallationError: (message) => `Upgrade error: ${message}`
|
|
@@ -649,7 +648,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
649
648
|
cmd: 'start a tunnel to connect your local code with the app running in the development environment',
|
|
650
649
|
optionDebugger: 'enable debugger mode',
|
|
651
650
|
preamble: 'Tunnel redirects requests you make to your local machine. This occurs for any Atlassian site where your app is installed in the specific development environment. You will not see requests from other users.',
|
|
652
|
-
startingTunnel: (environmentKey, envType) => `Tunnelling to: ${exports.Text.env.displayEnvironment(environmentKey, envType)}`,
|
|
651
|
+
startingTunnel: (environmentKey, envType, environmentToOption) => `Tunnelling to: ${exports.Text.env.displayEnvironment(environmentKey, envType, environmentToOption)}`,
|
|
653
652
|
startedServer: (port, isDebug) => `Listening for requests${isDebug ? ' on local port ' + port : ''}...`,
|
|
654
653
|
startedTunnel: (tunnelUrl) => `Started tunnel at address: ${tunnelUrl}`,
|
|
655
654
|
stoppingTunnel: 'Stopping tunnel...',
|
|
@@ -719,8 +718,8 @@ Debugging in Google Chrome:
|
|
|
719
718
|
done: `\n${log_symbols_1.default.success} Apps uninstalled`
|
|
720
719
|
},
|
|
721
720
|
info: 'Uninstalling the app by installation ID.',
|
|
722
|
-
done: (product, domain, environment, isMulti) => `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled from the ${
|
|
723
|
-
failed: (product, domain, environment) => `Failed to uninstall the app from the ${
|
|
721
|
+
done: (product, domain, environment, environmentToOption, isMulti) => `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled from the ${environmentToOption(environment)} environment in ${product} on ${buildTerminalLink(domain)}.`,
|
|
722
|
+
failed: (product, domain, environment, environmentToOption) => `Failed to uninstall the app from the ${environmentToOption(environment)} environment in ${product} on ${buildTerminalLink(domain)}. Try rerunning the command, or ask for help if you continue to see this error.`,
|
|
724
723
|
missingUninstallTask: `Cannot uninstall the app: something went wrong with starting the uninstall task.`
|
|
725
724
|
},
|
|
726
725
|
webtrigger: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/cli-shared",
|
|
3
|
-
"version": "3.13.0-next.
|
|
3
|
+
"version": "3.13.0-next.7",
|
|
4
4
|
"description": "Common functionality for Forge CLI",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"terminal-link": "^2.1.1",
|
|
42
42
|
"tmp": "^0.1.0",
|
|
43
43
|
"typescript": "^4.8.4",
|
|
44
|
-
"unzipper": "^0.10.
|
|
44
|
+
"unzipper": "^0.10.14",
|
|
45
45
|
"yaml": "^1.10.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@types/node-fetch": "^2.6.4",
|
|
63
63
|
"@types/recursive-readdir": "^2.2.1",
|
|
64
64
|
"@types/tmp": "^0.1.0",
|
|
65
|
-
"@types/unzipper": "^0.10.
|
|
65
|
+
"@types/unzipper": "^0.10.6",
|
|
66
66
|
"graphql-tools": "^6.2.4",
|
|
67
67
|
"jest-fixtures": "^0.6.0",
|
|
68
68
|
"jest-matcher-specific-error": "^1.0.0"
|