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: support multipart/multidoc JSON/YAML data #1

Merged
merged 12 commits into from
Aug 20, 2023
Merged

Conversation

tnyeanderson
Copy link
Owner

Adds the -m flag which executes the template for each line of JSON data it receives. Each line should be a complete JSON document.

It also adds multidoc support for YAML (separated by ---) without the need for an additional flag.

For both YAML and JSON multidocs, the program will error out if an error occurs by default. If the -i flag is set, the error will be printed but subsequent documents will be processed.

This also includes some new reader/writer based structs and methods to the public timplit API, and changes the Execute* functions to return []byte instead of string.

@tnyeanderson tnyeanderson merged commit 3557ca8 into main Aug 20, 2023
@tnyeanderson tnyeanderson deleted the multipart branch August 20, 2023 05:18
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.

None yet

1 participant