MCPcopy Create free account
hub / github.com/ding113/claude-code-hub / confirm

Method confirm

scripts/clear-session-bindings.ts:706–709  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

704 }
705
706 async confirm(message: string): Promise<boolean> {
707 const answer = await this.question(`${message} [y/N]: `);
708 return answer.toLowerCase() === "y" || answer.toLowerCase() === "yes";
709 }
710
711 async selectMainAction(): Promise<"priority" | "select" | "type" | "name" | "quit"> {
712 console.log("\n请选择操作:");

Callers 2

OverrideSectionFunction · 0.80
mainFunction · 0.80

Calls 1

questionMethod · 0.95

Tested by

no test coverage detected