dasel icon indicating copy to clipboard operation
dasel copied to clipboard

Add standard functions to format templates

Open kpym opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. If I need to make a field uppercase in a template like {{ .Name | upper }} I can't do this with dasel because the of the lack of standard template functions.

Describe the solution you'd like Include all functions from sprig for example looks like a possible solution.

kpym avatar Dec 06 '21 21:12 kpym

This is definitely an option. I'll take a look at sprig and see if I can include it in the next release.

TomWright avatar Jan 04 '22 14:01 TomWright

I've added this in https://github.com/TomWright/dasel/commit/b779b8820ed2b3f4c2d1adb5c0f299dccb785868 and it will be included in the next release.

TomWright avatar Jan 06 '22 15:01 TomWright

@TomWright thanks for considering this request. May you could document this now in Format ?

kpym avatar Jan 06 '22 16:01 kpym

I will do once I prepare the release

On Thu, 6 Jan 2022, 16:05 Kroum Tzanev, @.***> wrote:

@TomWright https://github.com/TomWright thanks for considering this request. May you could document this now in Format https://daseldocs.tomwright.me/usage/flags/format ?

— Reply to this email directly, view it on GitHub https://github.com/TomWright/dasel/issues/188#issuecomment-1006708263, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHEPO4NYDW33XQTRBNXLI3UUW4TVANCNFSM5JPTOAMQ . You are receiving this because you were mentioned.Message ID: @.***>

TomWright avatar Jan 06 '22 17:01 TomWright