MCPcopy Create free account
hub / github.com/different-ai/opencode-browser / confirm

Function confirm

bin/cli.js:92–95  ·  view source on GitHub ↗
(question)

Source from the content-addressed store, hash-verified

90}
91
92async function confirm(question) {
93 const answer = await ask(`${question} (y/n): `);
94 return answer.toLowerCase() === "y" || answer.toLowerCase() === "yes";
95}
96
97function getFlagValue(flag) {
98 const index = process.argv.findIndex((arg) => arg === flag || arg.startsWith(`${flag}=`));

Callers 1

installFunction · 0.85

Calls 1

askFunction · 0.85

Tested by

no test coverage detected