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 variables to be passed in at execution time, not only runtime (#37) #38

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

charles-dyfis-net
Copy link
Contributor

No description provided.

src/jq/api.clj Outdated
@@ -33,9 +33,9 @@
([^String query opts]
(let [^JsonQuery json-query (impl/compile-query query)
^Scope scope (impl/new-scope opts)]
(fn ^String [^String data]
(fn ^String [^String data & {:keys [vars]}]
Copy link
Owner

@dainiusjocas dainiusjocas Apr 16, 2023

Choose a reason for hiding this comment

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

to keep it consistent I'd prefer to make this function with two arguments, first for data, and second for the options map.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated accordingly in 3dcaedf

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(that committish is no longer in history as a separate item, but its contents have been folded in when rebasing/squashing this PR onto current main).

Copy link
Owner

@dainiusjocas dainiusjocas left a comment

Choose a reason for hiding this comment

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

Nice, thanks for your contribution!

@dainiusjocas dainiusjocas merged commit 83ba884 into dainiusjocas:main Apr 17, 2023
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