| 48 | } |
| 49 | |
| 50 | inline std::wstring build_win32_cmdline(const std::filesystem::path& program, |
| 51 | const std::vector<std::string>& args) { |
| 52 | std::wstring cmdline = quote_windows_cmd_arg(program.wstring()); |
| 53 | for (const auto& arg : args) { |
| 54 | cmdline.push_back(L' '); |
| 55 | cmdline += quote_windows_cmd_arg(lfs::core::utf8_to_wstring(arg)); |
| 56 | } |
| 57 | return cmdline; |
| 58 | } |
| 59 | #endif |
| 60 | |
| 61 | inline std::string format_command_for_log(const std::filesystem::path& program, |
no test coverage detected