INNER CODE UNIT · JavaScript
askDaemon
sismics/docs · docs-importer/main.js:312
const askDaemon = () => {
console.log('');
inquirer.prompt([
{
type: 'confirm',
name: 'daemon',
message: 'Do you want to run the importer in daemon mode (it will poll the input directory for new files, import and delete them)?',
default: prefs.importer.daemon === true
}
]).then(answers => {
// Save daemon
prefs.importer.daemon = answers.daemon;
// Save all preferences in case the program is sig-killed
prefs.save();
start();