fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

lengyijunFixes #8924 via `__fish_complete_suffix` overhaulaa65856ee

master
1.0 KiB14 linesraw
1complete -c hjson -n __fish_should_complete_switches -s j -l json -d "output formatted json"
2complete -c hjson -n __fish_should_complete_switches -s c -l compact -d "output condensed json"
3
4# these are "old-style" arguments so using `__fish_should_complete_switches` is needed
5# to prevent completing them by default as regular arguments.
6complete -c hjson -n __fish_should_complete_switches -a -sl -d "output the opening brace on the same line"
7complete -c hjson -n __fish_should_complete_switches -a -quote -d "quote all strings"
8complete -c hjson -n __fish_should_complete_switches -a "-quote=all" -d "quote all strings and keys"
9complete -c hjson -n __fish_should_complete_switches -a -js -d "output in JSON-compatible format"
10complete -c hjson -n __fish_should_complete_switches -a -rt -d "round trip comments"
11complete -c hjson -n __fish_should_complete_switches -a -nocol -d "disable color output"
12complete -c hjson -n __fish_should_complete_switches -a "-cond=" -d "set condense option [default 60]"
13
14complete -c hjson -k -xa "(__fish_complete_suffix .hjson .json)"