From c400bc8217f6b87009cea55f05a48c451cd46126 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 28 Oct 2022 18:47:17 +0200 Subject: [PATCH] cli (blog/set): new `--sign` argument: rel 381 --- sat_frontends/jp/cmd_blog.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sat_frontends/jp/cmd_blog.py b/sat_frontends/jp/cmd_blog.py index 2fe8ad42..f739d8b3 100644 --- a/sat_frontends/jp/cmd_blog.py +++ b/sat_frontends/jp/cmd_blog.py @@ -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):