MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / promptConfirm

Function promptConfirm

src/cli/commands/init.ts:76–92  ·  view source on GitHub ↗
(question: string)

Source from the content-addressed store, hash-verified

74}
75
76async function promptConfirm(question: string): Promise<boolean> {
77 if (!isInteractiveTTY()) {
78 return false;
79 }
80
81 const result = await clack.confirm({
82 message: question,
83 initialValue: false,
84 });
85
86 if (clack.isCancel(result)) {
87 clack.cancel('Operation cancelled.');
88 return false;
89 }
90
91 return result;
92}
93
94interface InstallResult {
95 client: string;

Callers 2

installSkillFunction · 0.85
ensureAgentsGuidanceFunction · 0.85

Calls 2

isInteractiveTTYFunction · 0.90
confirmMethod · 0.80

Tested by

no test coverage detected