| 1 |
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1. |
| 2 |
.TH J2CLI "1" "September 2022" "j2cli 0.3.12b0, Jinja2 2.11.3" "User Commands" |
| 3 |
.SH NAME |
| 4 |
j2cli \- Command line tool for templating in shell-scripts |
| 5 |
.SH DESCRIPTION |
| 6 |
usage: j2 [\-h] [\-v] [\-f {?,ini,json,yaml,env}] [\-e VAR] |
| 7 |
.IP |
| 8 |
[\-\-filters python\-file [python\-file ...]] |
| 9 |
[\-\-tests python\-file [python\-file ...]] [\-\-customize python\-file.py] |
| 10 |
[\-\-undefined] [\-o outfile] |
| 11 |
template [data] |
| 12 |
.PP |
| 13 |
Command\-line interface to Jinja2 for templating in shell scripts. |
| 14 |
.SS "positional arguments:" |
| 15 |
.TP |
| 16 |
template |
| 17 |
Template file to process |
| 18 |
.TP |
| 19 |
data |
| 20 |
Input data file path; "\-" to use stdin |
| 21 |
.SS "optional arguments:" |
| 22 |
.TP |
| 23 |
\fB\-h\fR, \fB\-\-help\fR |
| 24 |
show this help message and exit |
| 25 |
.TP |
| 26 |
\fB\-v\fR, \fB\-\-version\fR |
| 27 |
show program's version number and exit |
| 28 |
.TP |
| 29 |
\fB\-f\fR {?,ini,json,yaml,env}, \fB\-\-format\fR {?,ini,json,yaml,env} |
| 30 |
Input data format |
| 31 |
.TP |
| 32 |
\fB\-e\fR VAR, \fB\-\-import\-env\fR VAR |
| 33 |
Import environment variables as `var` variable. Use |
| 34 |
empty string to import into the top level |
| 35 |
.TP |
| 36 |
\fB\-\-filters\fR python\-file [python\-file ...] |
| 37 |
Load custom Jinja2 filters from a Python file: all |
| 38 |
top\-level functions are imported. |
| 39 |
.TP |
| 40 |
\fB\-\-tests\fR python\-file [python\-file ...] |
| 41 |
Load custom Jinja2 tests from a Python file. |
| 42 |
.TP |
| 43 |
\fB\-\-customize\fR python\-file.py |
| 44 |
A Python file that implements hooks to fine\-tune the |
| 45 |
j2cli behavior |
| 46 |
.TP |
| 47 |
\fB\-\-undefined\fR |
| 48 |
Allow undefined variables to be used in templates (no |
| 49 |
error will be raised) |
| 50 |
.TP |
| 51 |
\fB\-o\fR outfile |
| 52 |
Output to a file instead of stdout |
| 53 |
.SH "SEE ALSO" |
| 54 |
The full documentation for |
| 55 |
.B j2cli |
| 56 |
is maintained as a Texinfo manual. If the |
| 57 |
.B info |
| 58 |
and |
| 59 |
.B j2cli |
| 60 |
programs are properly installed at your site, the command |
| 61 |
.IP |
| 62 |
.B info j2cli |
| 63 |
.PP |
| 64 |
should give you access to the complete manual. |