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