MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / execute_uv

Method execute_uv

src/python/package_manager.cpp:391–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389 }
390
391 InstallResult PackageManager::execute_uv(const std::vector<std::string>& args) const {
392 const auto uv = uv_path();
393 if (uv.empty())
394 return {.error = "uv not found"};
395
396 LOG_INFO("Executing uv command with {} args", args.size());
397 LOG_DEBUG("UV command: {}", detail::format_command_for_log(uv, args));
398 const auto [exit_code, output] = execute_process_capture(uv, args);
399
400 InstallResult result;
401 result.output = output;
402 result.success = (exit_code == 0);
403 if (!result.success)
404 result.error = output.empty() ? "Exit code " + std::to_string(exit_code) : output;
405 return result;
406 }
407
408 InstallResult PackageManager::install(const std::string& package) {
409 if (!ensure_venv())

Callers

nothing calls this directly

Calls 5

format_command_for_logFunction · 0.85
execute_process_captureFunction · 0.85
to_stringFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected