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

Function cbm_install_agent_configs

src/cli/cli.c:10553–10563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10551 bool dry_run, cbm_detected_agents_t *agents_in);
10552
10553int cbm_install_agent_configs(const char *home, const char *binary_path, bool force, bool dry_run) {
10554 g_agent_install_errors = 0;
10555 cbm_detected_agents_t agents = cbm_detect_agents(home);
10556 if (g_client_selection && !cli_clients_apply_selection(g_client_selection, &agents)) {
10557 return CLI_ERR;
10558 }
10559 cli_config_follow_begin(home);
10560 int result = cbm_install_agent_configs_in_scope(home, binary_path, force, dry_run, &agents);
10561 cbm_config_edit_path_follow_clear();
10562 return result;
10563}
10564
10565static int cbm_install_agent_configs_in_scope(const char *home, const char *binary_path, bool force,
10566 bool dry_run, cbm_detected_agents_t *agents_in) {

Tested by

no test coverage detected