cli (blog/get): verbose level of 2 now shows extra field
This commit is contained in:
parent
44849a1fda
commit
9ce0f943cc
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue