itchyny / gojq

Pure Go implementation of jq
MIT License
3.3k stars 119 forks source link

fish complete support #207

Closed zuisong closed 1 year ago

zuisong commented 1 year ago
image

it works 😄 .

itchyny commented 1 year ago

Thank you for your contribution. But I don't use fish shell, and considering the popularity among the shells, I'm not confident to maintain this completion file, so forgive me closing this PR. This PR reminded me of various defects of the current zsh completion file. Something like option stacking (-esRr), controlling exclusiveness of --indent --tab or --args --jsonargs, displaying description for the second argument of --arg, --argjson, supporting repeated usage of -L, --arg, and stopping argument completions on --help, --version. I fixed all of these problems in the recent commit (218ec1aa660bd928eee4d2a6d088fc1e804940bb). It would be possible to refine this fish completion file to support something like this, but I'm not such motivated to read thought the fish documents. It would be great if you could contribute this file to the official fish completion collection.