Skip to content

Commit

Permalink
Display confirmation message before adding a domain (#1130)
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeramjayan authored and leo committed Feb 25, 2018
1 parent a63cb28 commit c1d16f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/sh/commands/domains.js
Expand Up @@ -235,6 +235,10 @@ async function run({ token, sh: { currentTeam, user } }) {
}
const name = String(args[0])

if (!await promptBool(`Are you sure you want to add "${name}"?`)) {
return exit(1)
}

const parsedDomain = psl.parse(name)
if (parsedDomain.subdomain) {
const msg =
Expand Down

0 comments on commit c1d16f9

Please sign in to comment.