Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, function (err) {
if (err) {
throw err;
}
const inquirer = require('suman-inquirer');
const inqDir = require('suman-inquirer-directory');
inquirer.registerPrompt('directory', inqDir);
let firstQuestionSeen = false;
const firstSetOfQuestions = [
{
type: 'confirm',
name: 'suman',
message: colors.yellow.underline(' => Welcome to Suman land!') + '\n' +
colors.blue(' This interactive utility allows you to familiarize yourself with Suman, as well as keep up to date with the API.\n' +
' You can generate a terminal command with this tool which you can then go run yourself.\n' +
' This tool can also help you troubleshoot or debug tests.') + '\n' +
' \n To skip this messsage the future, just use ' + colors.magenta('"suman --interactive --fast"') + '.\n\n' +
' To ' + colors.green('continue') + ', hit enter, or type "y" or "yes".\n\n ',
when: function () {
if (!firstQuestionSeen) {