| 56 | namespace { |
| 57 | |
| 58 | bool write_text(const std::filesystem::path& p, const std::string& s) { |
| 59 | std::ofstream f(p, std::ios::binary); |
| 60 | f.write(s.data(), static_cast<std::streamsize>(s.size())); |
| 61 | return static_cast<bool>(f); |
| 62 | } |
| 63 | double now_s() { return std::chrono::duration<double>(std::chrono::steady_clock::now().time_since_epoch()).count(); } |
| 64 | |
| 65 | int cmd_info(const std::string& file) { |
no test coverage detected