| 1 |
ERROR: must give filename |
| 2 |
|
| 3 |
Jsonnet commandline interpreter v0.22.0 |
| 4 |
|
| 5 |
jsonnet {<option>} <filename> |
| 6 |
|
| 7 |
Available options: |
| 8 |
-h / --help This message |
| 9 |
-e / --exec Treat filename as code |
| 10 |
-J / --jpath <dir> Specify an additional library search dir (right-most wins) |
| 11 |
-o / --output-file <file> Write to the output file rather than stdout |
| 12 |
-m / --multi <dir> Write multiple files to the directory, list files on stdout |
| 13 |
-y / --yaml-stream Write output as a YAML stream of JSON documents |
| 14 |
-S / --string Expect a string, manifest as plain text |
| 15 |
--no-trailing-newline Do not add a trailing newline to the output |
| 16 |
-s / --max-stack <n> Number of allowed stack frames |
| 17 |
-t / --max-trace <n> Max length of stack trace before cropping |
| 18 |
--gc-min-objects <n> Do not run garbage collector until this many |
| 19 |
--gc-growth-trigger <n> Run garbage collector after this amount of object growth |
| 20 |
--version Print version |
| 21 |
Available options for specifying values of 'external' variables: |
| 22 |
Provide the value as a string: |
| 23 |
-V / --ext-str <var>[=<val>] If <val> is omitted, get from environment var <var> |
| 24 |
--ext-str-file <var>=<file> Read the string from the file |
| 25 |
Provide a value as Jsonnet code: |
| 26 |
--ext-code <var>[=<code>] If <code> is omitted, get from environment var <var> |
| 27 |
--ext-code-file <var>=<file> Read the code from the file |
| 28 |
Available options for specifying values of 'top-level arguments': |
| 29 |
Provide the value as a string: |
| 30 |
-A / --tla-str <var>[=<val>] If <val> is omitted, get from environment var <var> |
| 31 |
--tla-str-file <var>=<file> Read the string from the file |
| 32 |
Provide a value as Jsonnet code: |
| 33 |
--tla-code <var>[=<code>] If <code> is omitted, get from environment var <var> |
| 34 |
--tla-code-file <var>=<file> Read the code from the file |
| 35 |
Environment variables: |
| 36 |
JSONNET_PATH is a colon (semicolon on Windows) separated list of directories added |
| 37 |
in reverse order before the paths specified by --jpath (i.e. left-most wins) |
| 38 |
E.g. JSONNET_PATH=a:b jsonnet -J c -J d is equivalent to: |
| 39 |
JSONNET_PATH=d:c:a:b jsonnet |
| 40 |
jsonnet -J b -J a -J c -J d |
| 41 |
|
| 42 |
In all cases: |
| 43 |
<filename> can be - (stdin) |
| 44 |
Multichar options are expanded e.g. -abc becomes -a -b -c. |
| 45 |
The -- option suppresses option processing for subsequent arguments. |
| 46 |
Note that since filenames and jsonnet programs can begin with -, it is advised to |
| 47 |
use -- if the argument is unknown, e.g. jsonnet -- "$FILENAME". |