Skip to content

Support useful template functions and modules in jq filters#10275

Draft
heaths wants to merge 1 commit intocli:trunkfrom
heaths:issue10262
Draft

Support useful template functions and modules in jq filters#10275
heaths wants to merge 1 commit intocli:trunkfrom
heaths:issue10262

Conversation

@heaths
Copy link
Contributor

@heaths heaths commented Jan 20, 2025

Resolves #10262.

Copy link
Contributor Author

@heaths heaths left a comment

Choose a reason for hiding this comment

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

This requires cli/go-gh#178 to be merged first.

Comment on lines +143 to +146
You can prepend jq module paths using %[1]s--library-path%[1]s to the following defaults:
1. ~/.jq
2. $ORIGIN/../gh
3. $ORIGIN/..
Copy link

@0xdevalias 0xdevalias Feb 6, 2025

Choose a reason for hiding this comment

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

It might be worth linking to the specific section of the jq manual that talks about this; and/or defining what $ORIGIN relates to here.

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.

Add custom formatting functions to --jq similar to those added to --template

2 participants