Switch to the traditional unicorn/dinosaur support categorisation.

This commit is contained in:
dg
2023-05-07 23:06:56 +00:00
parent a62346c515
commit f7b8022d3a
33 changed files with 118 additions and 42 deletions

View File

@@ -5,6 +5,20 @@
extern const std::map<std::string, const ConfigProto*> formats;
static std::string supportStatus(SupportStatus status)
{
switch (status)
{
case SupportStatus::DINOSAUR:
return "🦖";
case SupportStatus::UNICORN:
return "🦄";
}
return "";
}
int main(int argc, const char* argv[])
{
fmt::print("<!-- FORMATSSTART -->\n");
@@ -47,8 +61,8 @@ int main(int argc, const char* argv[])
fmt::print("| `{}` | {} | {} | {} | {} |\n",
name,
config->shortname() + ": " + config->comment(),
config->has_decoder() ? "YES" : "",
config->has_encoder() ? "YES" : "",
supportStatus(config->read_support_status()),
supportStatus(config->write_support_status()),
ss.str());
}