Skip to content

Commit a001e22

Browse files
committed
Deps refresh, minor fixes and version bump
1 parent 1d3f746 commit a001e22

3 files changed

Lines changed: 67 additions & 43 deletions

File tree

README.md

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -182,49 +182,61 @@ Passing the `-a | --escape` flag allows escaping the content.
182182

183183
## Usage
184184

185-
tera-cli 0.2.1
186-
185+
teracli 0.2.2
187186
chevdor <chevdor@gmail.com>
188-
189187
Command line utility for the tera templating engine. You need to provide a template using the tera
190188
syntax as well as some data (various format are supported)
191189

192190
USAGE:
193-
tera [FLAGS] [OPTIONS] --template <TEMPLATE> [CONTEXT]
191+
tera [OPTIONS] --template <TEMPLATE> [CONTEXT]
194192

195193
ARGS:
196194
<CONTEXT> Location of the context data. This file can be of the following type: json |
197195
toml | yaml. If you prefer to pass the data as stdin, use `--stdin`
198196

199-
FLAGS:
200-
-a, --escape Auto-escape rendered content. This is useful for HTML output
201-
-e, --env If true, the current ENV will be appended to the data under the
202-
--env-key key
203-
--env-first By default, the context is made of the data you pass and the ENV is
204-
applied afterwards. Setting this option will apply the ENV first.
205-
This is interesting if you prefer your data to override the ENV
206-
--env-only If you want to solely use the ENV as context, you may pass this
207-
option. This will prevent an error about no context being passed to
208-
be raised
209-
--fail-on-collision if you prefer your data to override the ENV
210-
-h, --help Print help information
211-
-i, --include This flag tells the command to parse all templates found in the same
212-
path where the given template is located [aliases: inherit]
213-
-s, --stdin The context data can be passed using stdin
214-
-V, --version Print version information
215-
216197
OPTIONS:
198+
-a, --escape
199+
Auto-escape rendered content. This is useful for HTML output
200+
201+
-e, --env
202+
If true, the current ENV will be appended to the data under the --env-key key
203+
204+
--env-first
205+
By default, the context is made of the data you pass and the ENV is applied afterwards.
206+
Setting this option will apply the ENV first. This is interesting if you prefer your
207+
data to override the ENV
208+
217209
--env-key <ENV_KEY>
218210
By default, if --env is set, the environment variables will be attached at the root of
219211
the context. This is convenient but may end up conflicting with your data. To prevent
220212
collisions, you can provide a custom key with this option
221213

214+
--env-only
215+
If you want to solely use the ENV as context, you may pass this option. This will
216+
prevent an error about no context being passed to be raised
217+
218+
--fail-on-collision
219+
if you prefer your data to override the ENV
220+
221+
-h, --help
222+
Print help information
223+
224+
-i, --include
225+
This flag tells the command to parse all templates found in the same path where the
226+
given template is located [aliases: inherit]
227+
222228
--include-path <INCLUDE_PATH>
223229
Option to define a different path from which search and parse templates [aliases:
224230
inherit-path]
225231

226232
-o, --out <OUT>
227233
Optional output file. If not passed, using stdout
228234

235+
-s, --stdin
236+
The context data can be passed using stdin
237+
229238
-t, --template <TEMPLATE>
230239
Location of the template
240+
241+
-V, --version
242+
Print version information

doc/usage.adoc

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,58 @@
1-
tera-cli 0.2.1
2-
1+
teracli 0.2.2
32
chevdor <chevdor@gmail.com>
4-
53
Command line utility for the tera templating engine. You need to provide a template using the tera
64
syntax as well as some data (various format are supported)
75

86
USAGE:
9-
tera [FLAGS] [OPTIONS] --template <TEMPLATE> [CONTEXT]
7+
tera [OPTIONS] --template <TEMPLATE> [CONTEXT]
108

119
ARGS:
1210
<CONTEXT> Location of the context data. This file can be of the following type: json |
1311
toml | yaml. If you prefer to pass the data as stdin, use `--stdin`
1412

15-
FLAGS:
16-
-a, --escape Auto-escape rendered content. This is useful for HTML output
17-
-e, --env If true, the current ENV will be appended to the data under the
18-
--env-key key
19-
--env-first By default, the context is made of the data you pass and the ENV is
20-
applied afterwards. Setting this option will apply the ENV first.
21-
This is interesting if you prefer your data to override the ENV
22-
--env-only If you want to solely use the ENV as context, you may pass this
23-
option. This will prevent an error about no context being passed to
24-
be raised
25-
--fail-on-collision if you prefer your data to override the ENV
26-
-h, --help Print help information
27-
-i, --include This flag tells the command to parse all templates found in the same
28-
path where the given template is located [aliases: inherit]
29-
-s, --stdin The context data can be passed using stdin
30-
-V, --version Print version information
31-
3213
OPTIONS:
14+
-a, --escape
15+
Auto-escape rendered content. This is useful for HTML output
16+
17+
-e, --env
18+
If true, the current ENV will be appended to the data under the --env-key key
19+
20+
--env-first
21+
By default, the context is made of the data you pass and the ENV is applied afterwards.
22+
Setting this option will apply the ENV first. This is interesting if you prefer your
23+
data to override the ENV
24+
3325
--env-key <ENV_KEY>
3426
By default, if --env is set, the environment variables will be attached at the root of
3527
the context. This is convenient but may end up conflicting with your data. To prevent
3628
collisions, you can provide a custom key with this option
3729

30+
--env-only
31+
If you want to solely use the ENV as context, you may pass this option. This will
32+
prevent an error about no context being passed to be raised
33+
34+
--fail-on-collision
35+
if you prefer your data to override the ENV
36+
37+
-h, --help
38+
Print help information
39+
40+
-i, --include
41+
This flag tells the command to parse all templates found in the same path where the
42+
given template is located [aliases: inherit]
43+
3844
--include-path <INCLUDE_PATH>
3945
Option to define a different path from which search and parse templates [aliases:
4046
inherit-path]
4147

4248
-o, --out <OUT>
4349
Optional output file. If not passed, using stdout
4450

51+
-s, --stdin
52+
The context data can be passed using stdin
53+
4554
-t, --template <TEMPLATE>
4655
Location of the template
56+
57+
-V, --version
58+
Print version information

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _usage:
1616

1717
# Generate documentation
1818
doc: _usage
19-
cargo doc -p tera-cli --all-features --no-deps
19+
cargo doc -p teracli --all-features --no-deps
2020

2121
# Run rustfmt
2222
_fmt:

0 commit comments

Comments
 (0)