Replies: 1 comment
-
I'm adding this functionality in #151. The syntax differs slightly from the above, please refer to the documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Add a new flag to dasel to allow users to format output using golang text templating.
This saves additional logic when trying to achieve something like this: #146
The template context will be given each output record as the root data object, allowing you to access it via
.
.You'll also have access to a
Select
function that will take a single argument. This can be used to select items from the output record using dasel selector syntax vs templating record syntax.Example usage:
This idea is still a work in progress and I'm open to suggestions on how it could work.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions