-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(core): add new pebble functions #6888 #7191
feat(core): add new pebble functions #6888 #7191
Conversation
let's make sure to add those 3 functions to the second table here https://github.com/kestra-io/kestra/blob/develop/ui/src/assets/documentations/basic.md#pebble-templating -- can you do that @deepPublicGit?
|
sure!
|
Updated the docs |
core/src/main/java/io/kestra/core/runners/pebble/functions/FileEmptyFunction.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/kestra/core/runners/pebble/functions/FileEmptyFunction.java
Outdated
Show resolved
Hide resolved
core/src/main/java/io/kestra/core/runners/pebble/functions/FileExistsFunction.java
Outdated
Show resolved
Hide resolved
d2d8668
to
0c3ed3b
Compare
Thanks @loicmathieu, changes made as per your suggestions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
What changes are being made and why?
New pebble functions added:
{{ fileExists(output.download.uri) }} -- returns true if file exists
{{ fileEmpty(output.download.uri) }} -- returns true if file content is blank
closes #6888