frep icon indicating copy to clipboard operation
frep copied to clipboard

Please use uptodated 'Masterminds/sprig'

Open n-arakawa opened this issue 5 years ago • 3 comments

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" }}

n-arakawa avatar Jul 27 '20 22:07 n-arakawa

I will upgrade to sprig V3 for next major version.

subchen avatar Jul 28 '20 06:07 subchen

This idiom seems to work with --missing error --strict

{{ append (pluck "optional_value" .) "UNDEF" | first }}

n-arakawa avatar Dec 14 '20 01:12 n-arakawa

what's the ETA, having get would be so great

kiorky avatar Aug 04 '21 09:08 kiorky