| 129 | } |
| 130 | |
| 131 | void ScriptScanner::GetConsoleList(std::back_insert_iterator<std::string> &output_iterator, bool newest_only) const |
| 132 | { |
| 133 | fmt::format_to(output_iterator, "List of {}:\n", this->GetScannerName()); |
| 134 | const ScriptInfoList &list = newest_only ? this->info_single_list : this->info_list; |
| 135 | for (const auto &item : list) { |
| 136 | ScriptInfo *i = item.second; |
| 137 | fmt::format_to(output_iterator, "{:>10} (v{:d}): {}\n", i->GetName(), i->GetVersion(), i->GetDescription()); |
| 138 | } |
| 139 | fmt::format_to(output_iterator, "\n"); |
| 140 | } |
| 141 | |
| 142 | /** Helper for creating a MD5sum of all files within of a script. */ |
| 143 | struct ScriptFileChecksumCreator : FileScanner { |
nothing calls this directly
no test coverage detected