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

Allow specifying a jq file as a parameter to expose custom jq functions that would be accessible in interactive mode #64

Open
lquerel opened this issue Dec 9, 2024 · 0 comments

Comments

@lquerel
Copy link

lquerel commented Dec 9, 2024

We heavily use JAQ in Weaver for filtering and pre-processing before the code/documentation generation phase. We’ve created a series of custom jq functions to make life easier for Weaver users. It would be interesting to reuse these custom functions directly in JNV when piping Weaver into JNV.

Example of JQ functions used in Weaver: https://github.com/open-telemetry/weaver/blob/main/defaults/jq/semconv.jq

Something like the following command line will be nice:

weaver registry resolve --format json | jnv --default-functions semconv.jq
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

No branches or pull requests

1 participant