bump-cli
Version:
The Bump CLI is used to interact with your API documentation hosted on Bump.sh by using the API of developers.bump.sh
14 lines (13 loc) • 390 B
JavaScript
import * as p from '@clack/prompts';
import { ExitError } from '@oclif/core/errors';
export const confirm = async (message = 'Continue?') => {
const prompt = await p.group({
shouldContinue: () => p.confirm({ message }),
}, {
onCancel() {
p.cancel('Cancelled.');
throw new ExitError(1);
},
});
return prompt.shouldContinue;
};