fork/fish-shell

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

Jannik VietenImprove jq completions and add gojq completions480133bcc

master
1.8 KiB28 linesraw
1# Pure Go implementation of jq
2# https://github.com/itchyny/gojq
3
4complete -c gojq -s c -l compact-output -d "Compact output, no pretty-print"
5complete -c gojq -s r -l raw-output -d "Output raw strings without quotes"
6complete -c gojq -s j -l join-output -d "Stop printing a newline after each output"
7complete -c gojq -s 0 -l nul-output -d "Print NUL after each output"
8complete -c gojq -s C -l color-output -d "Colorize output even if piped"
9complete -c gojq -s M -l monochrome-output -d "Stop colorizing output"
10complete -c gojq -l yaml-output -d "Output as YAML"
11complete -c gojq -l indent -x -d "Number of spaces for indentation"
12complete -c gojq -l tab -d "Use tabs for indentation"
13complete -c gojq -s n -l null-input -d "Use null as input value"
14complete -c gojq -s R -l raw-input -d "Read input as raw strings"
15complete -c gojq -s s -l slurp -d "Read all inputs into an array"
16complete -c gojq -l stream -d "Parse input in stream fashion"
17complete -c gojq -l yaml-input -d "Read input as YAML"
18complete -c gojq -s f -l from-file -rF -d "Load query from file"
19complete -c gojq -s L -xa "(__fish_complete_directories)" -d "Directory to search modules from"
20complete -c gojq -l arg -x -d "Set variable to string value"
21complete -c gojq -l argjson -x -d "Set variable to JSON value"
22complete -c gojq -l slurpfile -x -d "Set variable to the JSON contents of the file"
23complete -c gojq -l rawfile -x -d "Set variable to the contents of the file"
24complete -c gojq -l args -d "Consume remaining arguments as positional string values"
25complete -c gojq -l jsonargs -d "Consume remaining arguments as positional JSON values"
26complete -c gojq -s e -l exit-status -d "Exit 1 when the last value is false or null"
27complete -c gojq -s v -l version -d "Print gojq version"
28complete -c gojq -s h -l help -d "Print help"