generators/aws-containers/lib/utils.js
function spinner(promise, text = 'loading', spinnerIcon = 'monkey') {
    const spinner = ora({ spinner: spinnerIcon, text }).start();
    return new Promise((resolve, reject) => {
        promise
            .then(resolved => {
                spinner.stop();
                resolve(resolved);
            })
            .catch(err => {
                spinner.stop();
                reject(err);
            });
    });
}
function spinner(promise, text = 'loading', spinnerIcon = 'monkey') {
    const spinner = ora({ spinner: spinnerIcon, text }).start();
    return new Promise((resolve, reject) => {
        promise
            .then(resolved => {
                spinner.stop();
                resolve(resolved);
            })
            .catch(err => {
                spinner.stop();
                reject(err);
            });
    });
}
function spinner ( promise , text = 'loading' , spinnerIcon = 'monkey' ) { const spinner = ora ( { spinner : spinnerIcon , text } ) . start ( ) ; return new Promise ( ( resolve , reject ) => { promise . then ( resolved => { spinner . stop ( ) ; resolve ( resolved ) ; } ) . catch ( err => { spinner . stop ( ) ; reject ( err ) ; } ) ; } ) ; }
eslint-disable-line 
Wraps the promise in a CLI spinner
@param promise
@param text
@param spinnerIcon
eslint - disable - line Wraps the promise in a CLI spinner