Michael Färber

Results 246 comments of Michael Färber

> Given gsub($regex; s1, s2, …), the result should be the sequence gsub($regex; si) as i ranges from 1 on. This might work if `si` would always be constant strings,...

Hi @pkoppstein, I have also planned module support for 2.0. I'm not sure, though, about whether it's worth to support the `module` directive, because it is only useful together with...

By the way, you might perhaps know this: If we import some JSON data in a module `mod.jq`, then we can use it inside this module, e.g.: ~~~ jq #...

Thanks for giving some examples of `module` in the wild, @pkoppstein. I'm convinced now that I want to support this. Also thanks for pointing out that $bench alone works as...

I understand the usefulness of sorting keys, but this functionality could be equally well implemented as a filter. What do you think about including the following definition in jaq? ~~~...

I just realised that `to_entries` already sorts by key. That means that we can get away by writing simply: ~~~ jq def sort_keys: walk(if isobject then to_entries | from_entries end);...

> Is this on purpose? I ask because jq explicitly does **not** sort the keys since commit [jqlang/jq@4a57b84](https://github.com/jqlang/jq/commit/4a57b84db03db7aee33c47ed6c7f6c1e648705fd). No, that was not on purpose. 484dd27 should now correct this. Thanks...

> It may, however, be of interest to know that some of the jq maintainers have a strong distaste for command-line options and seem only to retain -S mainly for...

Do you know of any other Rust projects that have done this?

This issue is due to a release of the `ariadne` package that does not respect semantic versioning. In the meantime, you can use `cargo install --locked jaq`.