jqfmt
jqfmt copied to clipboard
Full command leaves trailing whitespace
Input
map(select(has("resource")) | .resource.github_repository | to_entries | map(.value | map(.name))) | flatten[]
Command
jqfmt -ar -ob -op pipe,comma,add,sub,mul,div,mod,eq,ne,gt,lt,ge,le,and,or,alt,assign,modify,updateAdd,updateSub,updateMul,updateDiv,updateMod,updateAlt
Output
map(select(has("resource")) |
.resource.github_repository |
to_entries |
map(.value |
map(.name))) |
flatten[]
Expected output
map(select(has("resource")) |
.resource.github_repository |
to_entries |
map(.value |
map(.name))) |
flatten[]
Version: https://github.com/NixOS/nixpkgs/blob/f0bf50c97687c333d48c11ee0b5cdc952d57b8cb/pkgs/by-name/jq/jqfmt/package.nix