How to use the suman-inquirer.registerPrompt function in suman-inquirer

To help you get started, we’ve selected a few suman-inquirer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sumanjs / suman / lib / interactive / index.js View on Github external
}, 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) {

suman-inquirer

A collection of common interactive command line user interfaces.

MIT
Latest version published 7 years ago

Package Health Score

60 / 100
Full package analysis