import { List } from 'enquirer'; import { InteractiveSubSource } from './InteractiveSubSource'; export class ArraySubSource extends InteractiveSubSource { protected condition ():boolean { return this.val.type_validation.option_type === 'array'; } protected async run ():Promise { await this.val.assign_arg ( this.opt, await new List ({ message: this.get_message (), default: this.opt.default }) .run () ); } }