UNPKG

zenith-gen

Version:

A CLI tool designed to streamline the creation of projects within the Zenith Inova ecosystem, providing optimized configurations and modern development tools.

18 lines (15 loc) 502 B
import inquirer from 'inquirer'; export async function projectNamePrompt(): Promise<string> { const projectName: string = await inquirer .prompt([ { type: 'input', name: 'projectName', message: 'Insert project name', validate: input => input ? true : 'Project name must be inserted', }, ]) .then(ans => ans.projectName); return projectName; }