| 59 | #endif |
| 60 | |
| 61 | inline std::string format_command_for_log(const std::filesystem::path& program, |
| 62 | const std::vector<std::string>& args) { |
| 63 | std::ostringstream stream; |
| 64 | stream << '"' << lfs::core::path_to_utf8(program) << '"'; |
| 65 | for (const auto& arg : args) { |
| 66 | stream << ' ' << '"' << arg << '"'; |
| 67 | } |
| 68 | return stream.str(); |
| 69 | } |
| 70 | |
| 71 | } // namespace lfs::python::detail |
no test coverage detected