UNPKG

@0divtag/cms_cli

Version:

CLI Tool for installing Blog CMS (https://github.com/0DivTag/blog_cms)

36 lines (35 loc) 826 B
const inquirer = require('inquirer'); module.exports = { askInstallMethod: () => { const questions = [ { type: 'list', name: 'install', message: 'Choose a install method:', choices: [ 'local', 'production'], default: 'local' } ]; return inquirer.prompt(questions); }, askUser: () => { const questions = [ { type: 'input', name: 'userName', message: 'Please specifiy the User Name:', }, { type: 'input', name: 'userEmail', message: 'Please specifiy the E-Mail Adress (No e-mails will be send):', }, { type: 'password', name: 'userPassword', message: 'Please specifiy the User Password:', }, ]; return inquirer.prompt(questions); }, };