Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Enhancement: add sprig for enhanced template functions #47

Open
jspaleta opened this issue Apr 16, 2021 · 1 comment · May be fixed by #53
Open

Feature Enhancement: add sprig for enhanced template functions #47

jspaleta opened this issue Apr 16, 2021 · 1 comment · May be fixed by #53

Comments

@jspaleta
Copy link
Contributor

sprig provides some great functionality for manipulating strings, dates, etcd as part of golang templates.

great for any plugin that needs to use a configurable template string.

@mjiderhamn
Copy link

This would be great for sensu-pagerduty-handler, allowing sprig functions to be used in the summary and detail templates.

As an example use case we want to truncate anything after the first newline in the .Check.Output from the summary.

mjiderhamn pushed a commit to mjiderhamn/sensu-plugin-sdk that referenced this issue Jun 23, 2021
@mjiderhamn mjiderhamn linked a pull request Jun 23, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants