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

Add JQ_PATHS_ARGS to jq-paths #34

Merged
merged 1 commit into from
Jan 9, 2024
Merged

Add JQ_PATHS_ARGS to jq-paths #34

merged 1 commit into from
Jan 9, 2024

Conversation

Gerrit-K
Copy link
Contributor

@Gerrit-K Gerrit-K commented Jan 5, 2024

What?

This is a reopen from #24. It adds a new variable $JQ_PATHS_ARGS to the call in jq-paths to be in line with the usage in jq-repl and jq-complete.

Why?

This plugin can simultaneously support JSON and YAML with the help of gojq by simply setting:

export JQ_REPL_JQ=gojq
export JQ_REPL_ARGS=--yaml-input
export JQ_PATHS_ARGS=--yaml-input

However, actual yaml input will currently result in errors, which are likely caused by the jq-paths command not using the --yaml-input arg.

@reegnz reegnz merged commit 2084e0d into reegnz:master Jan 9, 2024
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.

2 participants