MCPcopy
hub / github.com/mongodb/node-mongodb-native / confirm

Function confirm

etc/docs/utils.ts:49–55  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

47}
48
49export async function confirm(message: string) {
50 const response = await prompt(message);
51 if (response !== 'y') {
52 log('something went wrong. Exiting...');
53 process.exit(1);
54 }
55}
56
57export function getCommandLineArguments(): {
58 tag: string;

Callers 1

mainFunction · 0.90

Calls 2

promptFunction · 0.85
logFunction · 0.70

Tested by

no test coverage detected