| 126 | } |
| 127 | |
| 128 | void process_group_t::start(const std::string& name) { |
| 129 | auto found = std::find_if(configs_.begin(), configs_.end(), [&](auto& config) -> bool { return config.name == name; }); |
| 130 | |
| 131 | if (found != configs_.end()) { |
| 132 | if (processes_.contains(found->name)) { |
| 133 | return; |
| 134 | } |
| 135 | |
| 136 | processes_[found->name] = std::make_unique<process_manager_t>(found->executable, found->env_vars); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | void process_group_t::start() { |
| 141 | for (auto& config : configs_) { |
no test coverage detected