@iexec/iapp
Version:
A CLI to guide you through the process of building an iExec iApp
13 lines • 411 B
JavaScript
import { AbortError } from '../utils/errors.js';
export async function askForAcknowledgment({ spinner, message = 'Would you like to continue?', }) {
const { ack } = await spinner.prompt({
type: 'confirm',
name: 'ack',
message,
initial: true,
});
if (!ack) {
throw new AbortError('Operation cancelled');
}
}
//# sourceMappingURL=askForAcknowledgment.js.map