cli (blog/get): verbose level of 2 now shows extra field

This commit is contained in:
Goffi 2022-07-14 12:55:30 +02:00
commit 9ce0f943cc

View file

@ -81,6 +81,7 @@ MB_KEYS = (
"content_xhtml",
"title",
"title_xhtml",
"extra"
)
OUTPUT_OPT_NO_HEADER = "no-header"
@ -366,6 +367,8 @@ class Get(base.CommandBase):
value = k_cb[k](item, keys) if k in k_cb else item[k]
if isinstance(value, bool):
value = str(value).lower()
elif isinstance(value, dict):
value = repr(value)
self.disp(header + (value or ""))
# we want a separation line after each item but the last one
if idx < len(items) - 1: