@forge/cli-shared 3.14.0-next.3 → 3.14.0-next.4
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 +6 -0
- package/out/graphql/app-environment-graphql-client.d.ts.map +1 -1
- package/out/graphql/app-environment-graphql-client.js +1 -2
- package/out/graphql/graphql-types.d.ts +10 -1
- package/out/graphql/graphql-types.d.ts.map +1 -1
- package/out/ui/text.d.ts +29 -30
- package/out/ui/text.d.ts.map +1 -1
- package/out/ui/text.js +37 -36
- package/package.json +1 -1
package/out/ui/text.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { URL } from 'url';
|
|
2
2
|
import { AppEnvironmentType } from '../graphql/graphql-types';
|
|
3
|
-
declare type EnvironmentToOption = (environment: string) => string;
|
|
4
3
|
export interface AddedScope {
|
|
5
4
|
name: string;
|
|
6
5
|
requiresInteractiveConsent?: boolean;
|
|
@@ -147,7 +146,7 @@ export declare const Text: {
|
|
|
147
146
|
desc: string;
|
|
148
147
|
start: string;
|
|
149
148
|
success: (appName: string) => string;
|
|
150
|
-
successDetails: (directory: string, validEnvironmentOptions: string[]
|
|
149
|
+
successDetails: (directory: string, validEnvironmentOptions: string[]) => string;
|
|
151
150
|
};
|
|
152
151
|
intro: (givenDirectory: string) => string;
|
|
153
152
|
introWithCurrentDirectory: (currentDirectory: string) => string;
|
|
@@ -195,20 +194,20 @@ export declare const Text: {
|
|
|
195
194
|
desc: string;
|
|
196
195
|
start: string;
|
|
197
196
|
success: (appName: string) => string;
|
|
198
|
-
successDetails: (validEnvironmentOptions: string[]
|
|
197
|
+
successDetails: (validEnvironmentOptions: string[]) => string;
|
|
199
198
|
};
|
|
200
199
|
confirmQuestion: string;
|
|
201
200
|
};
|
|
202
201
|
env: {
|
|
203
202
|
option: string;
|
|
204
203
|
invalid: string;
|
|
205
|
-
developmentOnly: (envKey: string
|
|
204
|
+
developmentOnly: (envKey: string) => string;
|
|
206
205
|
error: {
|
|
207
206
|
appOwnerNotExist: string;
|
|
208
207
|
appNotExist: string;
|
|
209
|
-
envNotExist: (envKey: string
|
|
208
|
+
envNotExist: (envKey: string) => string;
|
|
210
209
|
};
|
|
211
|
-
displayEnvironment: (envKey: string, envType: AppEnvironmentType
|
|
210
|
+
displayEnvironment: (envKey: string, envType: AppEnvironmentType) => string;
|
|
212
211
|
warn: {
|
|
213
212
|
envWillBeCreated: (envKey: string) => string;
|
|
214
213
|
};
|
|
@@ -219,8 +218,8 @@ export declare const Text: {
|
|
|
219
218
|
prompt: string;
|
|
220
219
|
warn: string;
|
|
221
220
|
confirm: string;
|
|
222
|
-
setSuccess: (envKey: string, envType: AppEnvironmentType
|
|
223
|
-
createAndSetSuccess: (envKey: string, envType: AppEnvironmentType
|
|
221
|
+
setSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
222
|
+
createAndSetSuccess: (envKey: string, envType: AppEnvironmentType) => string;
|
|
224
223
|
settingsInfo: string;
|
|
225
224
|
};
|
|
226
225
|
varsSet: {
|
|
@@ -229,7 +228,7 @@ export declare const Text: {
|
|
|
229
228
|
start: string;
|
|
230
229
|
success: string;
|
|
231
230
|
};
|
|
232
|
-
overview: (environment: string, environmentType: AppEnvironmentType
|
|
231
|
+
overview: (environment: string, environmentType: AppEnvironmentType) => string;
|
|
233
232
|
encryptInfo: string;
|
|
234
233
|
promptEncrypt: string;
|
|
235
234
|
keyInfo: string;
|
|
@@ -242,16 +241,16 @@ export declare const Text: {
|
|
|
242
241
|
varsUnset: {
|
|
243
242
|
cmd: {
|
|
244
243
|
desc: string;
|
|
245
|
-
start: (environment: string, envType: AppEnvironmentType
|
|
244
|
+
start: (environment: string, envType: AppEnvironmentType) => string;
|
|
246
245
|
success: (key: string) => string;
|
|
247
246
|
};
|
|
248
247
|
};
|
|
249
248
|
varsList: {
|
|
250
249
|
hint: string;
|
|
251
250
|
cmd: string;
|
|
252
|
-
empty: (environment: string, envType: AppEnvironmentType
|
|
251
|
+
empty: (environment: string, envType: AppEnvironmentType) => string;
|
|
253
252
|
encryptedValue: string;
|
|
254
|
-
overview: (environment: string, envType: AppEnvironmentType
|
|
253
|
+
overview: (environment: string, envType: AppEnvironmentType) => string;
|
|
255
254
|
postfix: string;
|
|
256
255
|
};
|
|
257
256
|
providers: {
|
|
@@ -263,7 +262,7 @@ export declare const Text: {
|
|
|
263
262
|
start: string;
|
|
264
263
|
success: string;
|
|
265
264
|
};
|
|
266
|
-
overview: (environment: string
|
|
265
|
+
overview: (environment: string) => string;
|
|
267
266
|
providerKeyInfo: string;
|
|
268
267
|
noProviders: string;
|
|
269
268
|
promptProviderKey: string;
|
|
@@ -277,7 +276,7 @@ export declare const Text: {
|
|
|
277
276
|
cmd: {
|
|
278
277
|
desc: string;
|
|
279
278
|
start: string;
|
|
280
|
-
success: (envKey: string, envType: AppEnvironmentType
|
|
279
|
+
success: (envKey: string, envType: AppEnvironmentType) => string;
|
|
281
280
|
};
|
|
282
281
|
overview: string;
|
|
283
282
|
promptEnvironmentKey: string;
|
|
@@ -300,12 +299,12 @@ export declare const Text: {
|
|
|
300
299
|
prompt: string;
|
|
301
300
|
confirmationInfo: string;
|
|
302
301
|
promptConfirmation: string;
|
|
303
|
-
individualSuccessMessage: (envKey: string, envType: AppEnvironmentType
|
|
302
|
+
individualSuccessMessage: (envKey: string, envType: AppEnvironmentType) => string;
|
|
304
303
|
successMessage: string;
|
|
305
304
|
optionEnvironmentKey: string;
|
|
306
305
|
warningMessage: string;
|
|
307
306
|
noEnvironmentMessage: string;
|
|
308
|
-
hasInstallationError: (envKey: string
|
|
307
|
+
hasInstallationError: (envKey: string) => string;
|
|
309
308
|
};
|
|
310
309
|
storage: {
|
|
311
310
|
cmd: {
|
|
@@ -387,10 +386,10 @@ export declare const Text: {
|
|
|
387
386
|
deploy: {
|
|
388
387
|
cmd: {
|
|
389
388
|
desc: string;
|
|
390
|
-
start1: (envKey: string,
|
|
391
|
-
start2: (appName: string, envKey: string, envType: AppEnvironmentType
|
|
389
|
+
start1: (envKey: string, envType: AppEnvironmentType) => string;
|
|
390
|
+
start2: (appName: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
392
391
|
success: string;
|
|
393
|
-
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType
|
|
392
|
+
successDetails: (appName: string, envKey: string, envType: AppEnvironmentType) => string;
|
|
394
393
|
distributePageLink: (appId: string) => string;
|
|
395
394
|
};
|
|
396
395
|
taskLint: {
|
|
@@ -442,7 +441,7 @@ export declare const Text: {
|
|
|
442
441
|
install: {
|
|
443
442
|
cmd: {
|
|
444
443
|
description: string;
|
|
445
|
-
start: (envKey: string, envType: AppEnvironmentType
|
|
444
|
+
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
446
445
|
end: (displayTick: boolean) => string;
|
|
447
446
|
};
|
|
448
447
|
booleanToScope: (isLatest: boolean) => string;
|
|
@@ -451,11 +450,12 @@ export declare const Text: {
|
|
|
451
450
|
optionUpgrade: string;
|
|
452
451
|
listScopes: (scopes: AddedScope[]) => string;
|
|
453
452
|
listEgressAddresses: (egressAddresses: string[]) => string;
|
|
453
|
+
permissionMismatchCommandSuggestion: (environment: string) => string;
|
|
454
454
|
permissionsMismatch: (environment: string) => string;
|
|
455
|
-
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string
|
|
455
|
+
multiProductScopesDetected: (productsToInstall: string[], productsToUpgrade: string[], site: string, environment: string) => string;
|
|
456
456
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
457
457
|
success: {
|
|
458
|
-
banner: (envKey: string, envType: AppEnvironmentType,
|
|
458
|
+
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
459
459
|
};
|
|
460
460
|
error: {
|
|
461
461
|
invalidAtlassianSite: (url: URL) => string;
|
|
@@ -464,7 +464,7 @@ export declare const Text: {
|
|
|
464
464
|
site: (url: string) => string;
|
|
465
465
|
alreadyInstalledError: string;
|
|
466
466
|
serverSideInstallationError: (message: string) => string;
|
|
467
|
-
noDeploymentFound: (
|
|
467
|
+
noDeploymentFound: (environment: string) => string;
|
|
468
468
|
permissionsDeniedInstructions: (requestId: string, appId: string) => string;
|
|
469
469
|
};
|
|
470
470
|
security: {
|
|
@@ -485,7 +485,7 @@ export declare const Text: {
|
|
|
485
485
|
upgrade: {
|
|
486
486
|
banner: string;
|
|
487
487
|
cmd: {
|
|
488
|
-
start: (envKey: string, envType: AppEnvironmentType
|
|
488
|
+
start: (envKey: string, envType: AppEnvironmentType) => string;
|
|
489
489
|
end: (displayTick: boolean) => string;
|
|
490
490
|
error: string;
|
|
491
491
|
};
|
|
@@ -494,11 +494,11 @@ export declare const Text: {
|
|
|
494
494
|
permissionsMismatch: (environment: string) => string;
|
|
495
495
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment: boolean) => string;
|
|
496
496
|
success: {
|
|
497
|
-
banner: (envKey: string, envType: AppEnvironmentType,
|
|
497
|
+
banner: (envKey: string, envType: AppEnvironmentType, product: string, site: string) => string;
|
|
498
498
|
};
|
|
499
499
|
alreadyUpdated: {
|
|
500
500
|
spinner: string;
|
|
501
|
-
banner: (environment: string,
|
|
501
|
+
banner: (environment: string, product: string, site: string) => string;
|
|
502
502
|
};
|
|
503
503
|
error: {
|
|
504
504
|
serverSideInstallationError: (message: string) => string;
|
|
@@ -514,7 +514,7 @@ export declare const Text: {
|
|
|
514
514
|
cmd: string;
|
|
515
515
|
optionDebugger: string;
|
|
516
516
|
preamble: string;
|
|
517
|
-
startingTunnel: (environmentKey: string, envType: AppEnvironmentType
|
|
517
|
+
startingTunnel: (environmentKey: string, envType: AppEnvironmentType) => string;
|
|
518
518
|
startedServer: (port: number, isDebug: boolean) => string;
|
|
519
519
|
startedTunnel: (tunnelUrl: string) => string;
|
|
520
520
|
stoppingTunnel: string;
|
|
@@ -576,8 +576,8 @@ export declare const Text: {
|
|
|
576
576
|
done: string;
|
|
577
577
|
};
|
|
578
578
|
info: string;
|
|
579
|
-
done: (product: string, domain: string, environment: string,
|
|
580
|
-
failed: (product: string, domain: string, environment: string
|
|
579
|
+
done: (product: string, domain: string, environment: string, isMulti: boolean) => string;
|
|
580
|
+
failed: (product: string, domain: string, environment: string) => string;
|
|
581
581
|
missingUninstallTask: string;
|
|
582
582
|
};
|
|
583
583
|
webtrigger: {
|
|
@@ -664,5 +664,4 @@ export declare const Text: {
|
|
|
664
664
|
};
|
|
665
665
|
};
|
|
666
666
|
};
|
|
667
|
-
export {};
|
|
668
667
|
//# 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,
|
|
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,M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,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
|
|
199
|
-
.map(environmentToOption)
|
|
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(environment_1.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
|
|
250
|
-
.map(environmentToOption)
|
|
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(environment_1.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) => `${(0, environment_1.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
|
|
262
|
+
envNotExist: (envKey) => `Environment ${chalk_1.default.bold((0, environment_1.environmentToOption)(envKey))} does not exist. Check the environment name and try again.`
|
|
263
263
|
},
|
|
264
|
-
displayEnvironment: (envKey, envType
|
|
264
|
+
displayEnvironment: (envKey, envType) => {
|
|
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')} ${environmentToOption(envKey)}`;
|
|
268
|
+
return `${chalk_1.default.gray('DEV')} ${(0, environment_1.environmentToOption)(envKey)}`;
|
|
269
269
|
}
|
|
270
|
-
return environmentToOption(envKey);
|
|
270
|
+
return (0, environment_1.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
|
|
283
|
-
createAndSetSuccess: (envKey, envType
|
|
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`,
|
|
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
|
|
292
|
+
overview: (environment, environmentType) => `Setting the value of a variable in the ${exports.Text.env.displayEnvironment(environment, environmentType)} 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
|
|
305
|
+
start: (environment, envType) => `Unsetting the variable in the ${exports.Text.env.displayEnvironment(environment, envType)} 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
|
|
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`,
|
|
313
313
|
encryptedValue,
|
|
314
|
-
overview: (environment, envType
|
|
314
|
+
overview: (environment, envType) => `Showing variables from the ${exports.Text.env.displayEnvironment(environment, envType)} 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
|
|
326
|
+
overview: (environment) => `Configuring provider in the ${(0, environment_1.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
|
|
340
|
+
success: (envKey, envType) => `Created ${exports.Text.env.displayEnvironment(envKey, envType)}`
|
|
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
|
|
363
|
+
individualSuccessMessage: (envKey, envType) => `${log_symbols_1.default.info} ${exports.Text.env.displayEnvironment(envKey, envType)} 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) => `${(0, environment_1.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
|
|
450
|
+
start1: (envKey, envType) => `Deploying your app to the ${exports.Text.env.displayEnvironment(envKey, envType)} environment.\n${ctrlC}\n`,
|
|
451
|
+
start2: (appName, envKey, envType) => `Deploying ${appName} to ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
452
452
|
success: 'Deployed\n',
|
|
453
|
-
successDetails: (appName, envKey, envType
|
|
453
|
+
successDetails: (appName, envKey, envType) => `Deployed ${appName} to the ${exports.Text.env.displayEnvironment(envKey, envType)} 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 ${environment}`);
|
|
501
|
+
const indexCommand = chalk_1.default.bold(`forge storage entities indexes list -e ${(0, environment_1.environmentToOption)(environment)}`);
|
|
502
502
|
return (`Run ${indexCommand} to check the status of the indexes.`);
|
|
503
503
|
},
|
|
504
504
|
reindexingInProgress: {
|
|
@@ -549,7 +549,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
549
549
|
install: {
|
|
550
550
|
cmd: {
|
|
551
551
|
description: 'manage app installations',
|
|
552
|
-
start: (envKey, envType
|
|
552
|
+
start: (envKey, envType) => `Installing your app on to ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
553
553
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Install complete!`
|
|
554
554
|
},
|
|
555
555
|
booleanToScope: (isLatest) => (isLatest ? `Latest` : `Out-of-date`),
|
|
@@ -560,17 +560,18 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
560
560
|
.map(({ name, requiresInteractiveConsent }) => `- ${name}${requiresInteractiveConsent ? ' (requires user consent)' : ''}`)
|
|
561
561
|
.join('\n')}\n`,
|
|
562
562
|
listEgressAddresses: (egressAddresses) => `Your app will exchange data with the following urls:\n${egressAddresses.map((url) => `- ${url}`).join('\n')}\n`,
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
563
|
+
permissionMismatchCommandSuggestion: (environment) => `forge deploy -e ${(0, environment_1.environmentToOption)(environment)}`,
|
|
564
|
+
permissionsMismatch: (environment) => `The scopes or egress URLs in the manifest are different from the scopes in your most recent deployment to ${(0, environment_1.environmentToOption)(environment)}. Try running ${chalk_1.default.bold(exports.Text.install.permissionMismatchCommandSuggestion(environment))} before installing.\n`,
|
|
565
|
+
multiProductScopesDetected: (productsToInstall, productsToUpgrade, site, environment) => `\nWe detected your app requires scopes across multiple products.\nRun ${chalk_1.default.bold('forge install')} for each of the following:\n${productsToUpgrade
|
|
566
|
+
.map((product) => `- forge install --upgrade -p ${(0, case_1.capital)(product)} -s ${site} -e ${(0, environment_1.environmentToOption)(environment)}`)
|
|
566
567
|
.join('\n')}${productsToUpgrade.length !== 0 && productsToInstall.length !== 0 ? '\n' : ''}${productsToInstall
|
|
567
|
-
.map((product) => `- forge install -p ${(0, case_1.capital)(product)} -s ${site} -e ${environmentToOption(environment)}`)
|
|
568
|
+
.map((product) => `- forge install -p ${(0, case_1.capital)(product)} -s ${site} -e ${(0, environment_1.environmentToOption)(environment)}`)
|
|
568
569
|
.join('\n')}`,
|
|
569
570
|
promptForPermissionsConfirmation: (permissionsMismatchInDevelopment) => permissionsMismatchInDevelopment
|
|
570
571
|
? 'Are you sure you want to continue installing the app?'
|
|
571
572
|
: 'Do you want to continue?',
|
|
572
573
|
success: {
|
|
573
|
-
banner: (envKey, envType,
|
|
574
|
+
banner: (envKey, envType, product, site) => `Your app in the ${exports.Text.env.displayEnvironment(envKey, envType)} environment is now installed in ${product} on ${buildTerminalLink(site)}`
|
|
574
575
|
},
|
|
575
576
|
error: {
|
|
576
577
|
invalidAtlassianSite: (url) => `The URL you entered doesn't belong to an Atlassian site: ` +
|
|
@@ -583,7 +584,7 @@ What do you like or don't like about Forge? Share your feedback below or press C
|
|
|
583
584
|
site: (url) => `Site is invalid: ${url}`,
|
|
584
585
|
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.`,
|
|
585
586
|
serverSideInstallationError: (message) => `Installation error: ${message}`,
|
|
586
|
-
noDeploymentFound: (
|
|
587
|
+
noDeploymentFound: (environment) => `Forge apps must be deployed before installation. Deploy your app by running ${chalk_1.default.bold(`forge deploy -e ${(0, environment_1.environmentToOption)(environment)}`)}.`,
|
|
587
588
|
permissionsDeniedInstructions: (requestId, appId) => `Insufficient permissions to install app (requestId: ${requestId})` +
|
|
588
589
|
'\n\nTo install the app on this site, generate an installation link ' +
|
|
589
590
|
'in the developer console and share it with the site admin: ' +
|
|
@@ -619,7 +620,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
619
620
|
upgrade: {
|
|
620
621
|
banner: `\nUpgrading your app on the Atlassian site.\n`,
|
|
621
622
|
cmd: {
|
|
622
|
-
start: (envKey, envType
|
|
623
|
+
start: (envKey, envType) => `Upgrading your app in ${exports.Text.env.displayEnvironment(envKey, envType)}...`,
|
|
623
624
|
end: (displayTick) => `${displayTick ? greenTick + ' ' : ''}Upgrade complete!`,
|
|
624
625
|
error: `Upgrade failed`
|
|
625
626
|
},
|
|
@@ -632,11 +633,11 @@ ${buildTerminalLink(link)}\n`,
|
|
|
632
633
|
? 'Are you sure you want to continue upgrading the app?'
|
|
633
634
|
: 'Do you want to continue?',
|
|
634
635
|
success: {
|
|
635
|
-
banner: (envKey, envType,
|
|
636
|
+
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)}.`
|
|
636
637
|
},
|
|
637
638
|
alreadyUpdated: {
|
|
638
639
|
spinner: 'Site is already at the latest version',
|
|
639
|
-
banner: (environment,
|
|
640
|
+
banner: (environment, product, site) => `\nYour app in the ${(0, environment_1.environmentToOption)(environment)} environment is at the latest in ${product} on ${buildTerminalLink(site)}.`
|
|
640
641
|
},
|
|
641
642
|
error: {
|
|
642
643
|
serverSideInstallationError: (message) => `Upgrade error: ${message}`
|
|
@@ -652,7 +653,7 @@ ${buildTerminalLink(link)}\n`,
|
|
|
652
653
|
cmd: 'start a tunnel to connect your local code with the app running in the development environment',
|
|
653
654
|
optionDebugger: 'enable debugger mode',
|
|
654
655
|
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.',
|
|
655
|
-
startingTunnel: (environmentKey, envType
|
|
656
|
+
startingTunnel: (environmentKey, envType) => `Tunnelling to: ${exports.Text.env.displayEnvironment(environmentKey, envType)}`,
|
|
656
657
|
startedServer: (port, isDebug) => `Listening for requests${isDebug ? ' on local port ' + port : ''}...`,
|
|
657
658
|
startedTunnel: (tunnelUrl) => `Started tunnel at address: ${tunnelUrl}`,
|
|
658
659
|
stoppingTunnel: 'Stopping tunnel...',
|
|
@@ -722,8 +723,8 @@ Debugging in Google Chrome:
|
|
|
722
723
|
done: `\n${log_symbols_1.default.success} Apps uninstalled`
|
|
723
724
|
},
|
|
724
725
|
info: 'Uninstalling the app by installation ID.',
|
|
725
|
-
done: (product, domain, environment,
|
|
726
|
-
failed: (product, domain, environment
|
|
726
|
+
done: (product, domain, environment, isMulti) => `${isMulti ? log_symbols_1.default.info : log_symbols_1.default.success} Uninstalled from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}.`,
|
|
727
|
+
failed: (product, domain, environment) => `Failed to uninstall the app from the ${(0, environment_1.environmentToOption)(environment)} environment in ${product} on ${buildTerminalLink(domain)}. Try rerunning the command, or ask for help if you continue to see this error.`,
|
|
727
728
|
missingUninstallTask: `Cannot uninstall the app: something went wrong with starting the uninstall task.`
|
|
728
729
|
},
|
|
729
730
|
webtrigger: {
|