Skip to content

🎥 Make videos programmatically with React

feat: enhance template selection with detailed descriptions and hyperlinks

Shankhadeep Deyc6931da513fa
diff --git a/packages/create-video/src/select-template.ts b/packages/create-video/src/select-template.ts
index 9694e9c65a..d5097c08f2 100644
--- a/packages/create-video/src/select-template.ts
+++ b/packages/create-video/src/select-template.ts
@@ -1,5 +1,6 @@
import chalk from 'chalk';
import minimist from 'minimist';
+import {makeHyperlink} from './hyperlinks/make-link';
import {selectAsync} from './prompts';
import type {Template} from './templates';
import {FEATURED_TEMPLATES} from './templates';
@@ -42,7 +43,15 @@ export const selectTemplate = async () => {
template.cliId === 'editor-starter'
? ' ' + chalk.yellow('(Paid)')
: ''
- }`,
+ }${chalk.reset(
+ ` ${chalk.gray(template.description.trim())} ${chalk.gray(
+ makeHyperlink({
+ text: '(?)',
+ url: `https://remotion.dev/templates/${template.cliId}`,
+ fallback: '',
+ }),
+ )}`,
+ )}`,
};
}),
})) as Template;