comparison doc/libervia-cli/uri.rst @ 3488:c80a0f864b5d

doc: updated doc following global renaming
author Goffi <goffi@goffi.org>
date Sun, 21 Mar 2021 18:23:58 +0100
parents doc/jp/uri.rst@72583524cfd3
children
comparison
equal deleted inserted replaced
3487:75427f0a5445 3488:c80a0f864b5d
1 ================================
2 uri: XMPP URI parsing/generation
3 ================================
4
5 URI commands are helper to easily parse/build XMPP URIs.
6
7 parse
8 =====
9
10 Parse an XMPP URI, and print different parts.
11
12 When possible, the ``type`` of URI is shown (e.g. ``pubsub``) and the ``sub_type`` (e.g.
13 ``microblog``).
14
15 The ``path`` is always displayed (see `RFC 5122 Path section`_ for details).
16
17 If suitable, you'll also get data like ``node`` (for a PubSub URI).
18
19 .. _RFC 5122 Path section: https://tools.ietf.org/html/rfc5122#section-2.4
20
21 examples
22 --------
23
24 Parse a blog URI::
25
26 $ li uri parse "xmpp:somebody@example.org?;node=urn%3Axmpp%3Amicroblog%3A0"
27
28 build
29 ======
30
31 Build an XMPP URI according to arguments. 2 positional arguments are expected: ``type``
32 and ``path``. For now, only ``pubsub`` type is supported.
33
34 examples
35 --------
36
37 Build XMPP URI for a blog::
38
39 $ li uri build pubsub somebody@example.org -f node urn:xmpp:microblog:0