MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_upsert_gemini_hooks

Function cbm_upsert_gemini_hooks

src/cli/cli.c:5423–5433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5421};
5422
5423int cbm_upsert_gemini_hooks(const char *settings_path) {
5424 return upsert_hooks_json((hooks_upsert_args_t){
5425 .settings_path = settings_path,
5426 .hook_event = "BeforeTool",
5427 .matcher_str = GEMINI_HOOK_MATCHER,
5428 .command_str = GEMINI_HOOK_COMMAND,
5429 .old_matchers = cmm_gemini_old_matchers,
5430 .old_commands = cmm_gemini_released_hook_commands,
5431 .match_command_exact = GEMINI_HOOK_COMMAND,
5432 });
5433}
5434
5435int cbm_remove_gemini_hooks(const char *settings_path) {
5436 return remove_hooks_json((hooks_remove_args_t){

Callers 2

install_gemini_configFunction · 0.85
test_cli.cFile · 0.85

Calls 1

upsert_hooks_jsonFunction · 0.85

Tested by

no test coverage detected