UNPKG

@nestjs/cli

Version:

Nest - modern, fast, powerful node.js web framework (@cli)

12 lines (11 loc) 997 B
import { Answers } from 'inquirer'; import { Input } from '../../commands'; import { Configuration, ProjectConfiguration } from '../configuration'; export declare function shouldAskForProject(schematic: string, configurationProjects: { [key: string]: ProjectConfiguration; }, appName: string): boolean; export declare function shouldGenerateSpec(configuration: Required<Configuration>, schematic: string, appName: string, specValue: boolean, specPassedAsInput?: boolean): any; export declare function shouldGenerateFlat(configuration: Required<Configuration>, appName: string, flatValue: boolean): boolean; export declare function askForProjectName(promptQuestion: string, projects: string[]): Promise<Answers>; export declare function moveDefaultProjectToStart(configuration: Configuration, defaultProjectName: string, defaultLabel: string): string[]; export declare function hasValidOptionFlag(queriedOptionName: string, options: Input[], queriedValue?: string | number | boolean): boolean;