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

Method getConfirmationOptions

src/tools/builtin/git/git-add.ts:121–130  ·  view source on GitHub ↗

* 获取确认选项

(params: Record<string, any>)

Source from the content-addressed store, hash-verified

119 * 获取确认选项
120 */
121 protected getConfirmationOptions(params: Record<string, any>): ConfirmationOptions {
122 const baseOptions = super.getConfirmationOptions(params);
123
124 // Git add 操作通常比较安全
125 return {
126 ...baseOptions,
127 riskLevel: RiskLevel.SAFE,
128 confirmMessage: params.dryRun ? '执行干运行预览要添加的文件?' : '是否添加这些文件到暂存区?',
129 };
130 }
131
132 /**
133 * 预检查命令

Callers 1

executeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected