template-cli 0.4.4

CLI for templating based on JSON, YAML or HCL configuration
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
length: {% {} | length %}
length: {% {a:1, b:2, c:3} | length %}
containsKey: {% {a:1, b:2, c:3} | containsKey("a") %}
containsKey: {% {} | containsKey("a") %}
containsValue: {% {a:1, b:2, c:3} | containsValue(1) %}
containsValue: {% {} | containsValue("a") %}
empty: {% {a:1} | empty %}
empty: {% {} | empty %}
keys: {% {a:1, b:2, c:3} | keys %}
keys: {% {} | keys %}
values: {% {a:1, b:2, c:3} | values %}
values: {% {} | values %}
invert: {% {b: "d"} | invert %}
toJson: {% {a:1, b:2, c:3} | toJson %}
toJson: {% {} | toJson %}
toPrettyJson: {% {a:1, b:2, c:3} | toPrettyJson %}
toPrettyJson: {% {} | toPrettyJson %}