changeset 3958:e2a5f2f5e57b

cli (blog/set): new `--sign` argument: rel 381
author Goffi <goffi@goffi.org>
date Fri, 28 Oct 2022 18:47:17 +0200
parents b8ab6da58ac8
children da0e772881c3
files sat_frontends/jp/cmd_blog.py
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_blog.py	Fri Oct 28 18:47:17 2022 +0200
+++ b/sat_frontends/jp/cmd_blog.py	Fri Oct 28 18:47:17 2022 +0200
@@ -177,7 +177,13 @@
             "-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 @@
             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):