@forge/cli-shared
8.15.3-next.08.15.3-next.1
out/ui/text.js~
out/ui/text.jsModified+4−6
Index: package/out/ui/text.js
===================================================================
--- package/out/ui/text.js
+++ package/out/ui/text.js
@@ -157,9 +157,10 @@
response: (result, requestId) => `◀️ GraphQL\nRequest ID: ${requestId || 'unknown'}\nResult: ${result}`,
error: 'Server error',
outdatedClientVersion: `Your version of Forge CLI is no longer supported.` +
`\nRun ${command('npm', 'uninstall', '-g', cli_details_1.FORGE_CLI_PACKAGE)} followed by ${command('npm', 'install', '-g', cli_details_1.FORGE_CLI_PACKAGE)} to update to the latest version.` +
- `\n`
+ `\n`,
+ insufficientScopes: `You need a token with the right authorisation scopes to access this field. Create a new token with the required scopes to continue.`
},
hostedResources: {
error: (errorMessage) => `Failed to deploy hosted resources. ${errorMessage}`,
missingEntrypoint: `Missing index.html for custom UI resource. Make sure the file paths for resources in the manifest.yml file are correct and contain an index.html file.`,
@@ -203,17 +204,14 @@
optionEmail: 'specify the email to use',
optionToken: 'specify the API token to use',
introText: 'Log in to your Atlassian account',
promptEmail: 'Enter your email:',
- url: (link) => `Next, enter your Atlassian API token. If you don't have a token, visit this URL to create one:\n${buildTerminalLink(link)}`,
+ url: (link) => `Next, enter your Forge CLI scoped token. If you don’t have one, visit ${buildTerminalLink(link)}`,
promptToken: 'Enter your Atlassian API token:',
checking: 'Logging you in...',
nextStep: `Now try ${forge('create')} to start a new app.`,
success: (name) => `Logged in as ${name}.`,
- error: "We couldn't log you in with those credentials. Check your email address and token before rerunning the command.",
- scopedToken: {
- error: `Forge CLI currently does not support API tokens with scopes. To use CLI, create an API token without scopes by selecting ${chalk_1.default.bold('Create API token')}. Support for scoped API tokens will be included in a future release.`
- }
+ error: "We couldn't log you in with those credentials. Check your email address and token before rerunning the command."
},
logout: {
cmd: 'log out of your Atlassian account',
loggedOut: `${greenTick} Logged out.`