cli (pubsub): List support first draft + doc:

Basic support for listing hierarchy of nodes with pubsub extended discovery. Nodes are
displayed as a tree, depth can be specified.

rel 463
This commit is contained in:
Goffi 2025-08-31 12:34:37 +02:00
commit b816dc5e54
2 changed files with 85 additions and 0 deletions

View file

@ -117,6 +117,32 @@ Rename a PubSub item with ID ``123`` to ``456``::
$ li pubsub rename -n some_node -i 123 456
.. _li_pubsub_list:
list
====
List PubSub nodes and items.
By default, this command will display a tree view of the nodes and items available on the
specified service.
.. note::
The current implementation provides a basic tree view of nodes. Future versions will
include enhanced formatting options and additional filtering capabilities.
example
-------
List all nodes and items on a pubsub service::
$ li pubsub list -s pubsub.example.net
List nodes and items for a specific node::
$ li pubsub list -s pubsub.example.net -n some_node
subscribe
=========