Skip to content

Releases: wrouesnel/p2cli

r19

09 Jan 01:19
r19
e63d0d2
Compare
Choose a tag to compare
* Upgrade build tools to Go 1.23. No major changes.

r18

23 Oct 06:55
r18
56c4165
Compare
Choose a tag to compare
r18
* Update to latest pongo2 master which supports new "set" functionality.
* Add `replace` filter.

r17

23 Oct 03:43
r17
a3ec87a
Compare
Choose a tag to compare
r17
* Add `--input-root-key`` parameter

  pongo2 enforces restrictions on the structure of top level context keys.
  This breaks JSON/YAML/other formats if they have regular dashes (-) in
  key names. The `--input-root-key` parameter puts the entire input
  file context under a common key, which allows it to function normally.

r16

20 Oct 11:55
r16
5611add
Compare
Choose a tag to compare
r16
* Fix environment variables not being pulled from environment.

r14

26 Sep 12:17
r14
bc5fdbe
Compare
Choose a tag to compare
r14
* Add `--directory-mode-filename-substr-del` command to make templating in directory mode easier. See README.md
  for details.

r13

12 May 13:26
r13
821b21f
Compare
Choose a tag to compare
r13
* Fix GOOS format error from multi-platform releases.

(from r12)
* `--include-env` option to allow enviornment overrides of input files.

r10

23 Jul 03:15
r10
dc04891
Compare
Choose a tag to compare
r10
* Add new filters:
    * `indent` - output data with the given indent. Can be given either a string or number of spaces.
    * `to_json` - outputs structured data as JSON. Supplying a parameter sets the indent.
    * `to_yaml` - outputs structured data as YAML.
    * `to_toml` - outputs structured data as TOML. Must be supplied a map.
    * `string` - convert input data to string (use with `from_base64`)
    * `bytes` - convert input data to bytes
    * `to_base64` - encode a string or bytes to base64
    * `from_base64` - decode a string from base64 to bytes
    * `to_gzip` - compress bytes with gzip (supply level as parameter, default 9)
    * `from_gzip` - decompress bytes with gzip

r9

07 Jul 02:52
r9
7f6780a
Compare
Choose a tag to compare
r9
* Fix not exiting when pre-requisites for directory mode not met.
* Filter bad environment variable names out when using environment variables. Other modes are unaffected.

r8

06 Jul 11:06
r8
1d04eb6
Compare
Choose a tag to compare
r8
Release 8.

* Add `--directory-mode` which allows templating an entire folder of templates.
* Add SetMode, SetOwner and SetGroup folders to allow manipulating ownership
  and permissions on emitted files.
* See README.md for details on new usage.

r6

29 Feb 13:01
r6
07aa49b
Compare
Choose a tag to compare
r6
* Disable autoescape by default. It can be re-enabled with `--autoescape`.