LocalMachinepacks.promptAboutNewMachine()

Prompt command-line user for details about a new machine being created.

Usage

Hover over inputs/exits for more info.

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


// Prompt command-line user for details about a new machine being created.

LocalMachinepacks.promptAboutNewMachine({

identity: 'do-something',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

identity

'do-something'

Exits

error

An unexpected error occurred.

success

OK.

{ identity: 'do-something',
  friendlyName: 'Do something',
  description: 'Do something useful given stuff; maybe return something else.',
  extendedDescription: '...lots of words...',
  methodName: 'doSomething' }