Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/lib-node-utilities / bin / launch-daily.js
Size: Mime:
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);
		});
};