UNPKG

consultant

Version:

Gathers structural and validateable input from command line or interative menu

19 lines (18 loc) 807 B
import { Types } from './Types'; import { ConsultationResult } from './Consultation'; import { Rule } from './Rule'; export declare class Consultant { static types: typeof Types; rules: Rule; constructor(rules: Rule); fromObject(argv: object): Promise<ConsultationResult>; fromString(args: string): Promise<ConsultationResult>; fromCommandLine(): Promise<ConsultationResult>; fromInquiry(): Promise<ConsultationResult>; static getRuleInternal(predicate: (key: string, rule: Rule) => boolean, node: Rule): Promise<Rule | undefined>; getRule(predicate: (key: string, rule: Rule) => boolean): Promise<Rule | undefined>; getRuleById(id: string): Promise<Rule | undefined>; help(): Promise<void>; helpForId(id: string): Promise<void>; } export default Consultant;