cli (blog/set): new --sign argument:

rel 381
This commit is contained in:
Goffi 2022-10-28 18:47:17 +02:00
commit c400bc8217

View file

@ -177,7 +177,13 @@ class BlogPublishCommon(object):
"-e",
"--encrypt",
action="store_true",
help=_("end-to-end encrypt the blog item")
help=_("end-to-end encrypt the blog post")
)
self.parser.add_argument(
"-X",
"--sign",
action="store_true",
help=_("cryptographically sign the blog post")
)
async def setMbDataContent(self, content, mb_data):
@ -206,6 +212,8 @@ class BlogPublishCommon(object):
mb_data["language"] = self.args.language
if self.args.encrypt:
mb_data["encrypted"] = True
if self.args.sign:
mb_data["signed"] = True
class Set(base.CommandBase, BlogPublishCommon):