cli (blog/set): show ID of published item
This commit is contained in:
parent
51f786bc21
commit
44849a1fda
1 changed files with 2 additions and 2 deletions
|
|
@ -225,7 +225,7 @@ class Set(base.CommandBase, BlogPublishCommon):
|
|||
await self.setMbDataContent(content, mb_data)
|
||||
|
||||
try:
|
||||
await self.host.bridge.mbSend(
|
||||
item_id = await self.host.bridge.mbSend(
|
||||
self.args.service,
|
||||
self.args.node,
|
||||
data_format.serialise(mb_data),
|
||||
|
|
@ -235,7 +235,7 @@ class Set(base.CommandBase, BlogPublishCommon):
|
|||
self.disp(f"can't send item: {e}", error=True)
|
||||
self.host.quit(C.EXIT_BRIDGE_ERRBACK)
|
||||
else:
|
||||
self.disp("Item published")
|
||||
self.disp(f"Item published with ID {item_id}")
|
||||
self.host.quit(C.EXIT_OK)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue