Skip to content

Commit ac0eb73

Browse files
committed
Add documentation for --url-pattern flag
1 parent 9e9da45 commit ac0eb73

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/pages/tutorials/basic/exportingsimulations/exportingsimulations.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,12 @@ In case you are curious, the sequence diagram for this process looks like this:
5353
5454
hoverctl mode capture --headers "User-Agent,Content-Type,Authorization"
5555
hoverctl mode capture --all-headers
56+
57+
58+
.. note::
59+
It is possible to filter and export simulation to separate JSON files by providing a plain text or regex string to the ``--url-pattern`` flag:
60+
61+
.. code:: bash
62+
63+
hoverctl export echo.json --url-pattern "echo.jsontest.com" // export simulations for echo.jsontest.com only
64+
hoverctl export api.json --url-pattern "(.+).jsontest.com" // export simulations for all jsontest.com subdomains

0 commit comments

Comments
 (0)