Skip to content

Commit b72e4f8

Browse files
committed
ci: release 0.2.0
1 parent a9f5ddd commit b72e4f8

6 files changed

Lines changed: 71 additions & 60 deletions

File tree

Cargo.lock

Lines changed: 38 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["chevdor <chevdor@gmail.com>"]
33
edition = "2018"
44
name = "tera-cli"
5-
version = "0.1.3"
5+
version = "0.2.0"
66
description = "A command line utility written in Rust to render templates from json|toml|yaml && ENV, using the tera templating engine"
77
readme = "README.md"
88
license = "MIT"
@@ -18,7 +18,7 @@ tera = "1.12"
1818
toml = {version = "0.5", optional = false}
1919

2020
[dev-dependencies]
21-
assert_cmd = "1.0"
21+
assert_cmd = "2.0"
2222
predicates = "2.0"
2323

2424
[[bin]]

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ RUN set -eux \
3434
&& echo ">>> FINISHED COMPILING 'tera-cli'"
3535

3636
# ------------------------------------------------------------------------------
37-
# ------------------------------------------------------------------------------
3837

3938
FROM alpine
4039

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,18 @@ Passing the `-a | --escape` flag allows escaping the content.
160160

161161
## Usage
162162

163-
tera-cli 0.1.3
163+
tera-cli 0.2.0
164+
164165
chevdor <chevdor@gmail.com>
166+
165167
Command line utility for the tera templating engine. You need to provide a template using the tera
166168
syntax as well as some data (various format are supported)
167169

168170
USAGE:
169-
tera [FLAGS] [OPTIONS] --template <template> [context]
171+
tera [FLAGS] [OPTIONS] --template <TEMPLATE> [CONTEXT]
170172

171173
ARGS:
172-
<context> Location of the context data. This file can be of the following type: json |
174+
<CONTEXT> Location of the context data. This file can be of the following type: json |
173175
toml | yaml. If you prefer to pass the data as stdin, use `--stdin`
174176

175177
FLAGS:
@@ -183,21 +185,24 @@ Passing the `-a | --escape` flag allows escaping the content.
183185
option. This will prevent an error about no context being passed to
184186
be raised
185187
--fail-on-collision if you prefer your data to override the ENV
186-
-h, --help Prints help information
188+
-h, --help Print help information
187189
-i, --include This flag tells the command to parse all templates found in the same
188190
path where the given template is located [aliases: inherit]
189191
-s, --stdin The context data can be passed using stdin
190-
-V, --version Prints version information
192+
-V, --version Print version information
191193

192194
OPTIONS:
193-
--env-key <env-key>
195+
--env-key <ENV_KEY>
194196
By default, if --env is set, the environment variables will be attached at the root of
195197
the context. This is convenient but may end up conflicting with your data. To prevent
196198
collisions, you can provide a custom key with this option
197199

198-
--include-path <include-path>
200+
--include-path <INCLUDE_PATH>
199201
Option to define a different path from which search and parse templates [aliases:
200202
inherit-path]
201203

202-
-o, --out <out> Optional output file. If not passed, using stdout
203-
-t, --template <template> Location of the template
204+
-o, --out <OUT>
205+
Optional output file. If not passed, using stdout
206+
207+
-t, --template <TEMPLATE>
208+
Location of the template

doc/usage.adoc

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
tera-cli 0.1.3
1+
tera-cli 0.2.0
2+
23
chevdor <chevdor@gmail.com>
4+
35
Command line utility for the tera templating engine. You need to provide a template using the tera
46
syntax as well as some data (various format are supported)
57

68
USAGE:
7-
tera [FLAGS] [OPTIONS] --template <template> [context]
9+
tera [FLAGS] [OPTIONS] --template <TEMPLATE> [CONTEXT]
810

911
ARGS:
10-
<context> Location of the context data. This file can be of the following type: json |
12+
<CONTEXT> Location of the context data. This file can be of the following type: json |
1113
toml | yaml. If you prefer to pass the data as stdin, use `--stdin`
1214

1315
FLAGS:
@@ -21,21 +23,24 @@ FLAGS:
2123
option. This will prevent an error about no context being passed to
2224
be raised
2325
--fail-on-collision if you prefer your data to override the ENV
24-
-h, --help Prints help information
26+
-h, --help Print help information
2527
-i, --include This flag tells the command to parse all templates found in the same
2628
path where the given template is located [aliases: inherit]
2729
-s, --stdin The context data can be passed using stdin
28-
-V, --version Prints version information
30+
-V, --version Print version information
2931

3032
OPTIONS:
31-
--env-key <env-key>
33+
--env-key <ENV_KEY>
3234
By default, if --env is set, the environment variables will be attached at the root of
3335
the context. This is convenient but may end up conflicting with your data. To prevent
3436
collisions, you can provide a custom key with this option
3537

36-
--include-path <include-path>
38+
--include-path <INCLUDE_PATH>
3739
Option to define a different path from which search and parse templates [aliases:
3840
inherit-path]
3941

40-
-o, --out <out> Optional output file. If not passed, using stdout
41-
-t, --template <template> Location of the template
42+
-o, --out <OUT>
43+
Optional output file. If not passed, using stdout
44+
45+
-t, --template <TEMPLATE>
46+
Location of the template

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ brew:
4242
SITE=https://github.com
4343
REPO=chevdor/tera-cli
4444
tera --template templates/formula.rb --env-only > Formula/tera.rb
45+
46+
bump:
47+
cargo workspaces version --no-git-push

0 commit comments

Comments
 (0)