lib/cli/prompt.js
function prompt(menu){
    return new Promise(function(resolve, reject){

        // user confirmation required!
        _prompt.start();
        _prompt.message = '';
        _prompt.delimiter = '';
        _prompt.colors = false;

        _prompt.get(menu, function (err, result){
            if (err){
                reject(err);
            }else{
                resolve(result);
            }
        });

    });
}
function prompt(menu){
    return new Promise(function(resolve, reject){

        // user confirmation required!
        _prompt.start();
        _prompt.message = '';
        _prompt.delimiter = '';
        _prompt.colors = false;

        _prompt.get(menu, function (err, result){
            if (err){
                reject(err);
            }else{
                resolve(result);
            }
        });

    });
}
function prompt ( menu ) { return new Promise ( function ( resolve , reject ) { // user confirmation required! _prompt . start ( ) ; _prompt . message = '' ; _prompt . delimiter = '' ; _prompt . colors = false ; _prompt . get ( menu , function ( err , result ) { if ( err ) { reject ( err ) ; } else { resolve ( result ) ; } } ) ; } ) ; }
async prompt wrapper
async prompt wrapper