| 10551 | bool dry_run, cbm_detected_agents_t *agents_in); |
| 10552 | |
| 10553 | int 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 | |
| 10565 | static 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) { |
no test coverage detected