| 18 | static FlagGroup flags({&fileFlags}); |
| 19 | |
| 20 | int mainGetDiskInfo(int argc, const char* argv[]) |
| 21 | { |
| 22 | if (argc == 1) |
| 23 | showProfiles("getdiskinfo", formats); |
| 24 | flags.parseFlagsWithConfigFiles(argc, argv, formats); |
| 25 | |
| 26 | try |
| 27 | { |
| 28 | auto filesystem = Filesystem::createFilesystemFromConfig(); |
| 29 | auto attributes = filesystem->getMetadata(); |
| 30 | |
| 31 | for (const auto& e : attributes) |
| 32 | fmt::print("{}={}\n", e.first, quote(e.second)); |
| 33 | } |
| 34 | catch (const FilesystemException& e) |
| 35 | { |
| 36 | error("{}", e.message); |
| 37 | } |
| 38 | |
| 39 | return 0; |
| 40 | } |
nothing calls this directly
no test coverage detected