| 15 | } |
| 16 | |
| 17 | bool UvRunner::start(const std::vector<std::string>& args) { |
| 18 | cancel(); |
| 19 | |
| 20 | const auto uv = PackageManager::instance().uv_path(); |
| 21 | if (uv.empty()) { |
| 22 | LOG_ERROR("UV not found"); |
| 23 | return false; |
| 24 | } |
| 25 | |
| 26 | output_buffer_.clear(); |
| 27 | exit_code_ = -1; |
| 28 | complete_ = false; |
| 29 | |
| 30 | if (!process_.start(lfs::core::path_to_utf8(uv), args)) { |
| 31 | LOG_ERROR("Failed to start UV process"); |
| 32 | return false; |
| 33 | } |
| 34 | |
| 35 | running_ = true; |
| 36 | LOG_INFO("UV started with {} args", args.size()); |
| 37 | return true; |
| 38 | } |
| 39 | |
| 40 | bool UvRunner::poll() { |
| 41 | if (!running_.load()) { |
no test coverage detected