Repository URL to install this package:
|
Version:
0.0.1 ▾
|
const inquirer = require('inquirer');
const open = require('open');
const { DAILIES } = require('./constants');
module.exports = () => {
inquirer
.prompt([
{
type: 'list',
name: 'destination',
message: 'Which daily do you want to join?',
choices: Object.keys(DAILIES),
},
])
.then(answers => {
open(DAILIES[answers.destination]);
process.exit(0);
});
};