Skip to content

Commit 83b8927

Browse files
author
strausr
committed
fix(cli): show prompt help in message, one line per prompt
- Fold cloud name and upload preset help into message (inquirer ignores description) - Shorten to one gray line each: Dashboard link, Create preset link - Reduces verbosity while still providing the main links
1 parent c939396 commit 83b8927

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

cli.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,9 @@ async function main() {
4949
{
5050
type: 'input',
5151
name: 'cloudName',
52-
message: 'Cloudinary Cloud Name:',
53-
description: chalk.gray(
54-
'Your cloud name is shown in your dashboard: https://console.cloudinary.com/app/home/dashboard'
55-
),
52+
message:
53+
'Cloudinary Cloud Name:\n' +
54+
chalk.gray('Dashboard: https://console.cloudinary.com/app/home/dashboard'),
5655
validate: (input) => {
5756
if (!input.trim()) {
5857
return chalk.yellow(
@@ -70,14 +69,10 @@ async function main() {
7069
{
7170
type: 'confirm',
7271
name: 'hasUploadPreset',
73-
message: 'Do you have an unsigned upload preset? (Required for uploads, optional for transformations)',
72+
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'),
7475
default: false,
75-
description: chalk.gray(
76-
'Upload presets enable client-side uploads. You can set one up later at:\n' +
77-
'https://console.cloudinary.com/app/settings/upload/presets\n\n' +
78-
'The creation and management of upload presets is documented here:\n' +
79-
'https://cloudinary.com/documentation/upload_presets#creating_and_managing_upload_presets'
80-
),
8176
},
8277
{
8378
type: 'input',

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/.cursorrules.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ Docs: https://cloudinary.com/documentation/cloudinary_video_player
718718

719719
### Cloudinary package install fails or "version doesn't exist"
720720
- ❌ Problem: Agent pinned a Cloudinary package to a specific version (e.g. `cloudinary-video-player@1.2.3`) that doesn't exist on npm, or used a wrong package name.
721-
- ✅ **Install latest**: Use `npm install <package>` with **no version** so npm gets the latest compatible. In package.json use a **caret** (e.g. `"cloudinary-video-player": "^1.0.0"`). Use only correct package names: `@cloudinary/react`, `@cloudinary/url-gen`, `cloudinary-video-player`, `cloudinary`. See PATTERNS → "Installing Cloudinary packages".
721+
- ✅ **Install latest**: Use `npm install <package>` with **no version** so npm gets the latest compatible. In package.json use a **caret** (e.g. `"cloudinary-video-player": "^1.0.0"`). Use only correct package names: `@cloudinary/react`, `@cloudinary/tps://console.cloudinary.com/app/settings/upload/presets\n\n'-gen`, `cloudinary-video-player`, `cloudinary`. See PATTERNS → "Installing Cloudinary packages".
722722

723723
### Confusion between AdvancedVideo and Video Player
724724
- **AdvancedVideo** = for **displaying** a video (not a full player). **Cloudinary Video Player** = the **player** (styled UI, controls, playlists, etc.).

0 commit comments

Comments
 (0)