MCPcopy Create free account
hub / github.com/echoVic/blade-code / confirm

Method confirm

src/ui/components/Input.ts:74–85  ·  view source on GitHub ↗

* 确认输入

(message: string, options: ConfirmOptions = {})

Source from the content-addressed store, hash-verified

72 * 确认输入
73 */
74 public static async confirm(message: string, options: ConfirmOptions = {}): Promise<boolean> {
75 const answers = await inquirer.prompt([
76 {
77 type: 'confirm',
78 name: 'value',
79 message: UIStyles.component.label(message),
80 default: false,
81 ...options,
82 },
83 ]);
84 return answers.value;
85 }
86
87 /**
88 * 单选列表

Callers 4

quickConfirmMethod · 0.95
mcpCommandFunction · 0.80
toolsCommandFunction · 0.80
configCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected