frep
frep copied to clipboard
Please use uptodated 'Masterminds/sprig'
version info: frep-1.3.10-linux-amd64
According to git.mod, frep now uses 'Masterminds/sprig' of V2.22.
github.com/Masterminds/sprig v2.22.0+incompatible
I hope to have a 'get' dict function which is available from V3 of 'Masterminds/sprig'.
I always use frep with '--missing error'. With 'get', I can say somthing like
{{ if eq (get . "optional_value") "ON" }}
instead of
{{ if hasKey . "optional_value" }} {{ if eq .optional_value "ON" }}
I will upgrade to sprig V3 for next major version.
This idiom seems to work with --missing error --strict
{{ append (pluck "optional_value" .) "UNDEF" | first }}
what's the ETA, having get would be so great