Skip to content

Commit

Permalink
Merge pull request #566 from adobe/ACNA-1634-hyperlink-support
Browse files Browse the repository at this point in the history
fix: ACNA-1634 - Replace Developer Terms of Service text with help text and Developer Console url
  • Loading branch information
amulyakashyap09 authored Aug 23, 2022
2 parents 9bfd9f2 + 4ac00c0 commit 8e43e17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"get-port": "^5.1.1",
"hjson": "^3.2.1",
"http-terminator": "^2.0.3",
"hyperlinker": "^1.0.0",
"inquirer": "^7.0.0",
"js-yaml": "^3.13.1",
"lodash.clonedeep": "^4.5.0",
Expand Down
3 changes: 2 additions & 1 deletion src/commands/app/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const chalk = require('chalk')
// const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:init', { provider: 'debug' })
const { Flags } = require('@oclif/core')
const generators = require('@adobe/generator-aio-app')
const hyperlinker = require('hyperlinker')

const { loadAndValidateConfigFile, importConfigJson } = require('../../lib/import')
const { atLeastOne } = require('../../lib/app-helper')
Expand Down Expand Up @@ -133,7 +134,7 @@ class InitCommand extends AddCommand {
if (!isTermAccepted) {
const terms = await consoleCLI.getDevTermsForOrg()
const confirmDevTerms = await consoleCLI.prompt.promptConfirm(`${terms.text}
\nDo you agree with the new Developer Terms?`)
\nYou have not accepted the Developer Terms of Service. Go to ${hyperlinker('https://www.adobe.com/go/developer-terms', 'https://www.adobe.com/go/developer-terms')} to view the terms. Do you accept the terms? (y/n):`)
if (!confirmDevTerms) {
this.error('The Developer Terms of Service were declined')
} else {
Expand Down

0 comments on commit 8e43e17

Please sign in to comment.