async function withPrompt(callback, message = '') {
  const res = await confirm(
    `${message} Do you want to continue? [y/n]`,
  );
  if (!res) {
    return;
  }
  callback();
}
/**
 * Require confirmation before proceeding with command
 *
 * @param {Function} callback
 * @param {String} message Optional message
 */
Require confirmation before proceeding with command
@param {Function} callback
@param {String} message Optional message
Require confirmation before proceeding with command @param { Function } callback @param { String } message Optional message
async function withPrompt(callback, message = '') {
  const res = await confirm(
    `${message} Do you want to continue? [y/n]`,
  );
  if (!res) {
    return;
  }
  callback();
}
async function withPrompt ( callback , message = '' ) { const res = await confirm ( ` ${ message } ` , ) ; if ( ! res ) { return ; } callback ( ) ; }
Require confirmation before proceeding with command
 @param {Function} callback
 @param {String} message Optional message
Require confirmation before proceeding with command @param { Function } callback @param { String } message Optional message