✨A huge release this time around, with lots of community contributions! ✨
Highlights:
- Exec mode, or post-template command execution
- Lots of new functions:
- FreeBSD build!
v2.5.0 (2018-05-04)
Implemented enhancements:
- Exec mode... #300
- Need a way to determine whether a datasource is reachable #286
- Add
go-sockaddr
functions #145 - Adding datasourceReachable function #315 (hairyhenderson)
- Execute additional command after -- #307 (hairyhenderson)
Fixed bugs:
- panic when parsing an empty CSV as a datasource #311
- File mode is not preserved #296
- Fixing panic when parsing empty CSVs and CSVs containing only newlines #312 (hairyhenderson)
- Avoid closing stdout #306 (hairyhenderson)
- Writing output files from a stdin template requires permissions #305 (benjdewan)
- Linting subpackages too... #302 (hairyhenderson)
Closed issues:
- Writing an output file from a template provided via --in sets no FileMode when run using Docker #304
- function "dict" not defined #291
- unexpected "|" in template clause #290
- Conditional statement as default value in getenv? #285
- Pull in sprig functions? #283
- Consider breaking the gomplate cmd into a sub-package #147
Merged pull requests:
- Relaxing restriction on empty datasources #316 (hairyhenderson)
- Improving error handling for datasources #314 (hairyhenderson)
- Pin alpine Docker tag #309 (renovate[bot])
- Adding alpine Docker image variant #308 (hairyhenderson)
- Adding basic metrics around template rendering #303 (hairyhenderson)
- Preserve FileMode of input file when writing output file #301 (djgilcrease)
- Exporting the writer used when templates are sent to Stdout #299 (hairyhenderson)
- Adding new conv.Default function #298 (hairyhenderson)
- Adding time.Since and time.Until funcs #295 (hairyhenderson)
- Adding time.ParseDuration function #294 (hairyhenderson)
- Relax inputs for many functions #293 (hairyhenderson)
- Adding conv.ToString function #292 (hairyhenderson)
- chore(deps): update golang:1.10-alpine docker digest to 356aea #289 (renovate[bot])
- meta: Add release for freebsd-amd64 #287 (jen20)
- New env.ExpandEnv function #284 (hairyhenderson)
- New function proposal:
strings.TrimPrefix
#282 (christopher-avila) - New function:
file.Walk
#281 (christopher-avila) - Update golang Docker image 1.10-alpine digest (2d95d3) #280 (renovate[bot])
- Update deps #273 (hairyhenderson)
- Putting main pkg in cmd subdirectory #264 (hairyhenderson)