| 7822 | } |
| 7823 | |
| 7824 | static void install_managed_agent_instructions(const char *label, const char *instructions_path, |
| 7825 | bool dry_run) { |
| 7826 | if (g_install_plan) { |
| 7827 | plan_record(label, "instructions", instructions_path); |
| 7828 | return; |
| 7829 | } |
| 7830 | bool installed = true; |
| 7831 | if (!dry_run && |
| 7832 | (!prepare_config_parent(instructions_path) || |
| 7833 | cbm_upsert_instructions(instructions_path, agent_instructions_content) != CLI_OK)) { |
| 7834 | installed = false; |
| 7835 | record_agent_config_error(false, label, "instructions_install", instructions_path); |
| 7836 | } |
| 7837 | if (installed) { |
| 7838 | printf(" instructions: %s\n", instructions_path); |
| 7839 | } |
| 7840 | } |
| 7841 | |
| 7842 | static void install_qoder_durable_context(const char *home, const char *binary_path, |
| 7843 | const char *settings_path, bool config_resolved, |
no test coverage detected