JR man
Using JR man to look at all the available functions
JR has plenty of embedded functions that can be used to write yor own templates. We have included the documentation for all the functions directly into JR.
You can list all the available functions with a simple command:
jr function list
or, with a shorter syntax
jr man
You can filter by category:
jr man -c net
Or you can filter by name and description:
jr man -f random
You can also execute directly the Example using -r
flag:
jr man ip -r
which will basically execute this command for you:
jr run --template '{{ip "10.2.0.0/16"}}'
To study more advanced usages, look at the templates in your templates
directory