import inquirer from "inquirer" ; import { ClinterModeInfo , ClinterModeInfoObject } from "types" ; const ModeQuestion = { name : "mode" , default : ClinterModeInfo . Generator , message : "This tool can either generate a new configuration or upgrade an already existing one. Choose your mode." , type : "list" , choices : Object . values ( ClinterModeInfo ) , } ; export async function promptModeUserQuestions ( ) { return inquirer . prompt ( ModeQuestion ) ; }