plugin XEP-0048, XEP-0402; CLI (bookmarks): implement XEP-0402 (PEP Native Bookmarks):
- Former bookmarks implementation is now labeled as "legacy". - XEP-0402 is now used for bookmarks when relevant namespaces are found, and it fallbacks to legacy XEP-0048/XEP-0049 bookmarks otherwise. - CLI legacy bookmark commands have been moved to `bookmarks legacy` - CLI bookmarks commands now use the new XEP-0402 (with fallback to legacy one automatically used if necessary).
This commit is contained in:
parent
0c27fef2ac
commit
06a1eef720
1 changed files with 858 additions and 165 deletions
|
|
@ -116,7 +116,7 @@ class Send(base.CommandBase):
|
|||
addressing_group = self.parser.add_argument_group(
|
||||
"addressing commands",
|
||||
description="Commands to add addressing metadata, and/or to send message to "
|
||||
"multiple recipients."
|
||||
"multiple recipients.",
|
||||
)
|
||||
for arg_name in RECIPIENTS_ARGS:
|
||||
addressing_group.add_argument(
|
||||
|
|
@ -125,7 +125,7 @@ class Send(base.CommandBase):
|
|||
action="append",
|
||||
metavar=("JID", "DESCRIPTION"),
|
||||
help=f'extra "{arg_name.upper()}" recipient(s), may be used several '
|
||||
'times',
|
||||
"times",
|
||||
)
|
||||
for arg_name in REPLY_ARGS:
|
||||
addressing_group.add_argument(
|
||||
|
|
@ -133,13 +133,12 @@ class Send(base.CommandBase):
|
|||
nargs="+",
|
||||
action="append",
|
||||
metavar=("JID", "DESCRIPTION"),
|
||||
help=f'ask to reply to this JID, may be used several '
|
||||
'times',
|
||||
help=f"ask to reply to this JID, may be used several times",
|
||||
)
|
||||
addressing_group.add_argument(
|
||||
"--no-reply",
|
||||
action="store_true",
|
||||
help="flag this message as not requiring replies"
|
||||
help="flag this message as not requiring replies",
|
||||
)
|
||||
syntax = self.parser.add_mutually_exclusive_group()
|
||||
syntax.add_argument("-x", "--xhtml", action="store_true", help=_("XHTML body"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue