LocalMachinepacks.promptAboutNewMachinepack()

Prompt command-line user for new machinepack details.

Usage

Hover over inputs/exits for more info.

var LocalMachinepacks = require('machinepack-localmachinepacks');


// Prompt command-line user for new machinepack details.

LocalMachinepacks.promptAboutNewMachinepack({

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// User cancelled the prompt (i.e. hit ^C)

cancelled: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

Exits

error

An unexpected error occurred.

cancelled

User cancelled the prompt (i.e. hit ^C)

success

OK.

{ friendlyName: 'Passwords',
  identity: 'passwords',
  sentenceCaseFriendlyName: 'passwords',
  moduleName: 'machinepack-passwords',
  description: 'Work with passwords.' }