Skip to content

Commit ba4a26d

Browse files
feat: put Inquirer inputs on a new, separate line
1 parent 155022e commit ba4a26d

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

cli.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function main() {
3131
{
3232
type: 'input',
3333
name: 'projectName',
34-
message: 'Project name:',
34+
message: 'What’s your project’s name?\n',
3535
default: 'my-cloudinary-app',
3636
validate: (input) => {
3737
if (!input.trim()) {
@@ -50,14 +50,14 @@ async function main() {
5050
type: 'input',
5151
name: 'cloudName',
5252
message:
53-
'Cloudinary Cloud Name:\n' +
54-
chalk.gray('Dashboard: https://console.cloudinary.com/app/home/dashboard'),
53+
'What’s your Cloudinary cloud name?\n' +
54+
chalk.gray(' → Find your cloud name: https://console.cloudinary.com/app/home/dashboard') + '\n',
5555
validate: (input) => {
5656
if (!input.trim()) {
5757
return chalk.yellow(
5858
'Cloud name is required.\n' +
59-
' → Sign up: https://cloudinary.com/users/register/free\n' +
60-
' → Find your cloud name: https://console.cloudinary.com/app/home/dashboard'
59+
' → Sign up: https://cloudinary.com/users/register/free\n' +
60+
' → Find your cloud name: https://console.cloudinary.com/app/home/dashboard'
6161
);
6262
}
6363
if (!isValidCloudName(input)) {
@@ -70,14 +70,15 @@ async function main() {
7070
type: 'confirm',
7171
name: 'hasUploadPreset',
7272
message:
73-
'Do you have an unsigned upload preset? (Required for uploads, optional for transformations)\n' +
74-
chalk.gray('Create one: https://console.cloudinary.com/app/settings/upload/presets'),
73+
'Do you have an unsigned upload preset?\n' +
74+
chalk.gray(' → You’ll need one if you want to upload new images to Cloudinary,\n but not if you only want to transform or deliver existing images.') + '\n' +
75+
chalk.gray(' → Create one here: https://console.cloudinary.com/app/settings/upload/presets') + '\n',
7576
default: false,
7677
},
7778
{
7879
type: 'input',
7980
name: 'uploadPreset',
80-
message: 'Upload Preset Name:',
81+
message: 'What’s your unsigned upload preset’s name?\n',
8182
when: (answers) => answers.hasUploadPreset,
8283
validate: (input) => {
8384
if (!input.trim()) {
@@ -101,13 +102,13 @@ async function main() {
101102
{
102103
type: 'confirm',
103104
name: 'installDeps',
104-
message: 'Install dependencies now?',
105+
message: 'Install dependencies now?\n',
105106
default: true,
106107
},
107108
{
108109
type: 'confirm',
109110
name: 'startDev',
110-
message: 'Start development server?',
111+
message: 'Start development server?\n',
111112
default: false,
112113
when: (answers) => answers.installDeps,
113114
},

0 commit comments

Comments
 (0)