cli (blog/set): new --sign argument:
rel 381
This commit is contained in:
parent
cc8b5aa554
commit
c400bc8217
1 changed files with 9 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue