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

feat(core): add new pebble functions #6888 #7191

Merged
merged 16 commits into from
Feb 11, 2025

Conversation

deepPublicGit
Copy link
Contributor

@deepPublicGit deepPublicGit commented Feb 5, 2025

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

@anna-geller
Copy link
Member

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?

  • fileSize
  • fileExists
  • fileEmpty

@deepPublicGit
Copy link
Contributor Author

sure!

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?

* fileSize

* fileExists

* fileEmpty

@deepPublicGit
Copy link
Contributor Author

Updated the docs

@deepPublicGit
Copy link
Contributor Author

Thanks @loicmathieu, changes made as per your suggestions

Copy link
Member

@loicmathieu loicmathieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

@loicmathieu loicmathieu merged commit 2ba64a7 into kestra-io:develop Feb 11, 2025
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add Pebble functions to help troubleshoot if file exists, is empty and inspecting its file size
5 participants