doc (cli/pubsub): document pubsub cache management commands

This commit is contained in:
Goffi 2021-07-29 22:51:01 +02:00
commit bd25717a7d

View file

@ -33,6 +33,8 @@ Create an item with a custom note XML::
$ echo '<note xmlns="http://example.net/mynotes">this is a note</note>' | li pubsub set -n "notes"
.. _li_pubsub_get:
get
===
@ -331,7 +333,7 @@ returned.
example
-------
Imagine that you want to replace all occurrences of "sàt" by "Libervia" in your personal blog. You first create a Python script like this:
Imagine that you want to replace all occurrences of "SàT" by "Libervia" in your personal blog. You first create a Python script like this:
.. sourcecode:: python
@ -339,10 +341,10 @@ Imagine that you want to replace all occurrences of "sàt" by "Libervia" in your
import sys
item_raw = sys.stdin.read()
if not "sàt" in item_raw:
if not "SàT" in item_raw:
print("SKIP")
else:
print(item_raw.replace("sàt", "Libervia"))
print(item_raw.replace("SàT", "Libervia"))
And save it a some location, e.g. ``~/expand_sat.py`` (don't forget to make is executable
with ``chmod +x ~/expand_sat.py``).
@ -381,3 +383,8 @@ hook
====
Subcommands for hooks management. Please check :ref:`libervia-cli_pubsub_hook`.
cache
=====
Subcommands for cache management. Please check :ref:`libervia-cli_pubsub_cache`.