Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
cli: fix dialog options
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Apr 27, 2018
1 parent c03c79c commit b91d9f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion cli/packages/prisma-cli-core/src/commands/local/Docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ Please close the process by hand. ${instruction}`)
if (this.cluster ? this.cluster.local : true) {
await this.setKeyPair()
}
debug(this.envVars)
}

async setKeyPair() {
Expand Down
3 changes: 2 additions & 1 deletion cli/packages/prisma-cli-core/src/utils/EndpointDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ export class EndpointDialog {
const fixChoices = [
['Use existing database', 'Connect to existing database'],
['Create new database', 'Set up a local database using Docker'],
['Use other server', 'Connect to an existing prisma server'],
]
const rawChoices = [...fixChoices, ...sandboxChoices]
const choices = this.convertChoices(rawChoices)
Expand All @@ -396,7 +397,7 @@ export class EndpointDialog {
new inquirer.Separator(
chalk.bold('Or use a free hosted Prisma sandbox (includes database)'),
),
...choices.slice(fixChoices.length, 4),
...choices.slice(fixChoices.length, 5),
]
return {
name: 'choice',
Expand Down

0 comments on commit b91d9f6

Please sign in to comment.