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

Add template functions for userdata #104

Merged
merged 1 commit into from
Jan 7, 2022

Conversation

iainlane
Copy link
Contributor

It's good to have some common useful functions available. In particular I wanted to use nindent to include a via write_files.

@bradrydzewski
Copy link
Member

we have our own function library that was extracted from the hugo library that we use for across many Drone repositories. I would therefore recommend bringing drone/funcmap into this repository.

@iainlane
Copy link
Contributor Author

I'll take a look when I get a moment, thanks. From a quick glance I don't see indent which is what I'm currently using from sprig. So I'll have to first do a PR to funcmap to add that.

It's good to have some common useful functions available
@iainlane
Copy link
Contributor Author

Alright, I've done as requested. This depends on drone/funcmap#2.

Note that I need to have Funcs rather than SafeFuncs as we're fetching from the environment and env is not safe by funcmap's definition.

go.mod Show resolved Hide resolved
@iainlane iainlane changed the title Add sprig template functions Add template functions for userdata Nov 18, 2021
@bradrydzewski bradrydzewski merged commit 84e3ad6 into drone:master Jan 7, 2022
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 this pull request may close these issues.

2 participants