import inquirer from 'inquirer' ; import { Answer , ProviderValue , Choice } from '../models/choice' ; export async function providerQuestion ( ) { const listOfFiles = [ { name : 'Github' , value : ProviderValue . GITHUB } , { name : 'Gitlab' , value : ProviderValue . GITLAB } , { name : 'CodeCommit (AWS)' , value : ProviderValue . CODECOMMIT } , { name : 'Bitbucket' , value : ProviderValue . BITBUCKET } , ] ; return await inquirer . prompt ( [ { name : 'provider' , type : 'list' , message : 'Select a Git hosting provider:' , choices : listOfFiles , } ] ) ; }