import clc from 'cli-color' ; import inquirer from 'inquirer' ; const cliQuestions = { askWalletPassword : ( message = 'Type your password' ) => { return inquirer . prompt ( [ { name : 'password' , type : 'password' , message , validate : ( val ) => { if ( val . length ) { return true ; } return 'Please enter a password' ; } , } , ] ) ; } , showConfirm : ( ) => { return inquirer . prompt ( [ { name : 'confirm' , type : 'confirm' , message : clc . greenBright ( 'Carefully check the above details are correct, then confirm to complete this upload' ) , } , ] ) ; } , } ; export default cliQuestions ;