UNPKG

nest-commander

Version:

A module for making CLI applications with NestJS. Decorators for running commands and separating out config parsers included. This package works on top of commander.

15 lines (14 loc) 715 B
import { DiscoveryService } from '@golevelup/nestjs-discovery'; import { Answers } from 'inquirer'; import * as inquirerImport from 'inquirer'; export declare class InquirerService { readonly inquirer: typeof inquirerImport; private readonly discoveryService; constructor(inquirer: typeof inquirerImport, discoveryService: DiscoveryService); private readonly inquirerKeyToMetadataKeyMap; ask: <T extends Answers>(questionSetName: string, options: Partial<T> | undefined) => Promise<T>; prompt<T extends Answers>(questionSetName: string, options: Partial<T> | undefined): Promise<T>; private findQuestionSet; private mapMetaQuestionToQuestion; private parseRawQuestionMetadata; }