New command tagtypes available

Shows the list of tag types configured by the ``metadata_to_use`` setting.
This commit is contained in:
jcorporation
2024-09-28 21:03:49 +02:00
parent 124c0e66ee
commit 25e8ce2d37
5 changed files with 21 additions and 0 deletions

View File

@@ -18,6 +18,14 @@ tag_print_types(Response &r) noexcept
r.Fmt(FMT_STRING("tagtype: {}\n"), tag_item_names[i]);
}
void
tag_print_types_available(Response &r) noexcept
{
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++)
if (global_tag_mask.Test(TagType(i)))
r.Fmt(FMT_STRING("tagtype: {}\n"), tag_item_names[i]);
}
void
tag_print(Response &r, TagType type, std::string_view value) noexcept
{