-
Notifications
You must be signed in to change notification settings - Fork 80
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
No man page #256
Comments
Hi @pjungkamp, thank you for your comment! In principle, I am sympathetic to creating a man page for jaq. The question is: What should really go into it? To answer it, it would help me to know what you are looking for when you open the man page. Do you look for a reference, i.e. a list of the available operators and functions with a relatively small description? Do you look for examples? Or do you look for more of a tutorial? I think that I could identify with a description of the CLI options, as well as a relatively terse summary of the operators/functions, perhaps with one or two examples each. Such as:
I'm reluctant, on the other hand, to just copy large parts of the jq manual. That will eventually make them diverge and hard to maintain. State of the art:
What do you think? |
I'd like to see:
I think the |
I love the
|
I don't think that |
Yes, I would not have planned on including a language grammar anyway. :) And I agree with you on the utility of interspersed examples. |
These points look very reasonable to me. If I understand you correctly, you would like a short reference.
I'm not sure whether you know it, but I have already created something that sounds a lot like what you describe here: jqlang/jq#3189. You can see the "builtin functions" section here. |
(By the way, this motivated me to support URLs such as https://gedenkt.at/jaq/?q=%22a%22&j=null in the jaq playground, in case we want to generate an HTML version of the jaq manual and create playground links from the examples there 0c5c67a. Compare it with the loading time of https://jqplay.org/?q=%22a%22&j=null.) |
I've recently switched from using
jq
tojaq
for the occasional command line JSON processing. And since I'm only crafting small filters, I have to refer tojq
's documentation, especially it's man page, regularly.Documentation for the jaq command line options and maybe some examples should probably go into section 1 man page. I think most of the language documentation could be copied from
jq
under its CC license, amended and put into section "3 Library Calls" or "5 File formats and configuration files", I'm not sure what would be more appropriate.The text was updated successfully, but these errors were encountered: