go-sprout / sprout

From sprig to sprout - Useful template functions for Go templates with steroids
https://sprout.atom.codes
MIT License
86 stars 4 forks source link

feat: implement yaml functions based on helm implementation #36

Closed 42atomys closed 4 months ago

42atomys commented 4 months ago

Description

We continue to backport features, bug fixes, and more from Sprig to Sprout. This time, I'm focusing on the YAML functions part, used by Helm and intended for use by others as well.

Changes

Fixes https://github.com/Masterminds/sprig/issues/358 https://github.com/Masterminds/sprig/pull/360

Checklist

Additional Information

The documentation for the encoding part of the library will be released soon after this pull request on https://sprout.atom.codes

Initially implemented by @blakepettersson on sprig

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Files Coverage Δ
encoding_functions.go 100.0% <100.0%> (ø)
sprout.go 100.0% <100.0%> (ø)
andig commented 3 months ago

Does this PR actually need sigs.k8s.io/yaml or rather gopkg.in/yaml.v3? Seems the dependency tree could be reduced a little but by removing k8s.