mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-13 17:34:00 +08:00
0866013280
__fish_complete_suffix accepts a first argument containing a brace-expansion, like __fish_complete_suffix '.{c,cpp,py}' We're gonna be removing the `eval` that does that shortly, so let's remove all uses in our code.
15 lines
1.1 KiB
Fish
15 lines
1.1 KiB
Fish
complete -c hjson -n '__fish_should_complete_switches' -s j -l json -d "output formatted json"
|
|
complete -c hjson -n '__fish_should_complete_switches' -s c -l compact -d "output condensed json"
|
|
|
|
# these are "old-style" arguments so using `__fish_should_complete_switches` is needed
|
|
# to prevent completing them by default as regular arguments.
|
|
complete -c hjson -n '__fish_should_complete_switches' -a "-sl" -d "output the opening brace on the same line"
|
|
complete -c hjson -n '__fish_should_complete_switches' -a "-quote" -d "quote all strings"
|
|
complete -c hjson -n '__fish_should_complete_switches' -a "-quote=all" -d "quote all strings and keys"
|
|
complete -c hjson -n '__fish_should_complete_switches' -a "-js" -d "output in JSON-compatible format"
|
|
complete -c hjson -n '__fish_should_complete_switches' -a "-rt" -d "round trip comments"
|
|
complete -c hjson -n '__fish_should_complete_switches' -a "-nocol" -d "disable color output"
|
|
complete -c hjson -n '__fish_should_complete_switches' -a "-cond=" -d "set condense option [default 60]"
|
|
|
|
complete -c hjson -k -xa "(__fish_complete_suffix .hjson; __fish_complete_suffix .json)"
|