lib/flatiron/plugins/cli.js
function ensureDestroy(callback) {
    app.prompt.get(['destroy'], function (err, result) {
      if (result.destroy !== 'yes' && result.destroy !== 'y') {
        app.log.warn('Destructive operation cancelled');
        return callback(true);
      }

      callback();
    });
  }
function ensureDestroy(callback) {
    app.prompt.get(['destroy'], function (err, result) {
      if (result.destroy !== 'yes' && result.destroy !== 'y') {
        app.log.warn('Destructive operation cancelled');
        return callback(true);
      }

      callback();
    });
  }
function ensureDestroy ( callback ) { app . prompt . get ( [ 'destroy' ] , function ( err , result ) { if ( result . destroy !== 'yes' && result . destroy !== 'y' ) { app . log . warn ( 'Destructive operation cancelled' ) ; return callback ( true ) ; } callback ( ) ; } ) ; }
Helper function to ensure the user wishes to execute a destructive command.
Helper function to ensure the user wishes to execute a destructive command .