doc: markup jq as program role
Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
@@ -123,7 +123,7 @@ You can list the active routes in the *Kapow!* server.
|
|||||||
$ kapow route list
|
$ kapow route list
|
||||||
[{"id":"20c98328-0b82-11ea-90a8-784f434dfbe2","method":"GET","url_pattern":"/echo/{message}","entrypoint":"/bin/sh -c","command":"kapow get /request/matches/message | kapow set /response/body"}]
|
[{"id":"20c98328-0b82-11ea-90a8-784f434dfbe2","method":"GET","url_pattern":"/echo/{message}","entrypoint":"/bin/sh -c","command":"kapow get /request/matches/message | kapow set /response/body"}]
|
||||||
|
|
||||||
Or, if you want human-readable output, you can use ``jq``:
|
Or, if you want human-readable output, you can use :program:`jq`:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|||||||
@@ -73,19 +73,19 @@ Sharing the Stats
|
|||||||
|
|
||||||
**Junior**
|
**Junior**
|
||||||
|
|
||||||
``jq``? What is that command?
|
:program:`jq`? What is that command?
|
||||||
|
|
||||||
**Senior**
|
**Senior**
|
||||||
|
|
||||||
``jq`` is a wonderful tool for working with ``JSON`` data from the command
|
:program:`jq` is a wonderful tool for working with ``JSON`` data from the command
|
||||||
line. With ``jq`` you can extract data from a ``JSON`` document and it also
|
line. With :program:`jq` you can extract data from a ``JSON`` document and it also
|
||||||
allows you to generate a well-formed ``JSON`` document.
|
allows you to generate a well-formed ``JSON`` document.
|
||||||
|
|
||||||
**Junior**
|
**Junior**
|
||||||
|
|
||||||
Let's use it, then!
|
Let's use it, then!
|
||||||
|
|
||||||
How can we generate a ``JSON`` document with ``jq``?
|
How can we generate a ``JSON`` document with :program:`jq`?
|
||||||
|
|
||||||
**Senior**
|
**Senior**
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ Sharing the Stats
|
|||||||
**Senior**
|
**Senior**
|
||||||
|
|
||||||
Bear with me, it gets better. You can add variables to the ``JSON`` and
|
Bear with me, it gets better. You can add variables to the ``JSON`` and
|
||||||
``jq`` will escape them for you.
|
:program:`jq` will escape them for you.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user