cli (pubsub/get): add --no-decrypt flag to disable automatic decryption:
rel 380
This commit is contained in:
parent
ba9a4ef31b
commit
f99544e881
1 changed files with 28 additions and 11 deletions
|
|
@ -1281,9 +1281,17 @@ class Get(base.CommandBase):
|
|||
default="",
|
||||
help=_("subscription id"),
|
||||
)
|
||||
self.parser.add_argument(
|
||||
"--no-decrypt",
|
||||
action="store_true",
|
||||
help=_("don't do automatic decryption of e2ee items"),
|
||||
)
|
||||
# TODO: a key(s) argument to select keys to display
|
||||
|
||||
async def start(self):
|
||||
extra = {}
|
||||
if self.args.no_decrypt:
|
||||
extra["decrypt"] = False
|
||||
try:
|
||||
ps_result = data_format.deserialise(
|
||||
await self.host.bridge.psItemsGet(
|
||||
|
|
@ -1292,7 +1300,7 @@ class Get(base.CommandBase):
|
|||
self.args.max,
|
||||
self.args.items,
|
||||
self.args.sub_id,
|
||||
self.getPubsubExtra(),
|
||||
self.getPubsubExtra(extra),
|
||||
self.profile,
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue