@@ -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
0 commit comments