UNPKG

@nodearch/cli

Version:
46 lines 1.3 kB
import { QuestionType, ICommand } from '@nodearch/command'; import { Logger } from '@nodearch/core'; import { NpmService } from './npm.service.js'; export declare class NewCommand implements ICommand { private readonly npmService; private readonly logger; constructor(npmService: NpmService, logger: Logger); command: string; describe: string; aliases: string; builder: { name: { alias: string; describe: string; }; template: { alias: string; describe: string; }; description: { alias: string; describe: string; }; }; questions: ({ type: QuestionType; name: string; message: string; validate: (input: any) => true | "Project name is required"; choices?: undefined; } | { type: QuestionType; name: string; message: string; validate: (input: any) => true | "Project description is required"; choices?: undefined; } | { type: QuestionType; name: string; message: string; choices: string[]; validate?: undefined; })[]; handler(options: Record<string, any>): Promise<void>; } //# sourceMappingURL=new.command.d.ts.map