# HG changeset patch # User Goffi # Date 1665859020 -7200 # Node ID 5980ea188f8746ab0380b88e7cdc5c103f557474 # Parent ebe45ea2df3b6ca55a3801eef7eba70d72a04b7c cli (blog): add `--encrypt` argument on publication commands to e2ee a blog post: rel 380 diff -r ebe45ea2df3b -r 5980ea188f87 sat_frontends/jp/cmd_blog.py --- a/sat_frontends/jp/cmd_blog.py Sat Oct 15 20:37:00 2022 +0200 +++ b/sat_frontends/jp/cmd_blog.py Sat Oct 15 20:37:00 2022 +0200 @@ -173,6 +173,12 @@ "--syntax", help=_("syntax to use (default: get profile's default syntax)"), ) + self.parser.add_argument( + "-e", + "--encrypt", + action="store_true", + help=_("end-to-end encrypt the blog item") + ) async def setMbDataContent(self, content, mb_data): if self.default_syntax_used: @@ -198,6 +204,8 @@ mb_data["title"] = self.args.title if self.args.language is not None: mb_data["language"] = self.args.language + if self.args.encrypt: + mb_data["encrypted"] = True class Set(base.CommandBase, BlogPublishCommon):