UNPKG

confectus

Version:
2 lines (1 loc) 614 B
import{a as r}from"./chunk-XG6HOKA7.js";import{a as t,b as e,c as i}from"./chunk-336WG3XI.js";import n from"inquirer";var o=class{stackChoice="";answers={};wichStackWillUse(s){this.stackChoice=s.stack}saveAnswers(s){this.answers={...this.answers,...s}}async startQuestionnaire(){try{let s=await n.prompt(t);this.wichStackWillUse(s),this.saveAnswers({stack:this.stackChoice});let c=this.stackChoice==="Frontend"?i:e,a=await n.prompt(c);return this.saveAnswers(a)}catch(s){return process.env.NODE_ENV==="development"?console.error({error:s}):console.error(new r)}}get Answers(){return this.answers}};export{o as a};