zsh-workers
 help / color / mirror / code / Atom feed
24eb4cf527b99b3ed4b77092d4c4d29150a38b44 blob 2121 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
#compdef jq

# last updated for jq-1.5-1-a5b5cbe (debian package 1.5+dfsg-1.3)

# Note:
#   Arguments to options must be in separate words.  Thus,
#     {-f,--from-file}'[foo]'
#   is correct like that, without the usual {-f+,--from-file=} suffixes.
#
_arguments -S -s : \
  "--version[output jq's version number]" \
  "--seq[use application/json-seq ASCII RS/LF scheme in input and output]" \
  "--stream[parse input streamily (changes output)]" \
  '(-s --slurp)'{-s,--slurp}'[join input JSON objects to array before filtering]' \
  '(-R --raw-input)'{-R,--raw-input}'[consider each input line as a JSON strings]' \
  '(-n --null-input)'{-n,--null-input}'[input is ignored]' \
  '(-c --compact-output)'{-c,--compact-output}"[don't pretty-print]" \
  '(--indent)--tab[indent output using TAB characters]' \
  '(--tab)--indent[indent output using given number of spaces]:number of spaces (integer):(2 4 8)' \
  '(-C --color-output -M --monochrome-output)'{-C,--color-output}'[output in color]' \
  '(-C --color-output -M --monochrome-output)'{-M,--monochrome-output}'[output without color]' \
  '(-a --ascii-output)'{-a,--ascii-output}'[restrict output to ASCII]' \
  '--unbuffered[flush output after each JSON object]' \
  '(-S --sort-keys)'{-S,--sort-keys}'[output object keys in sorted order]' \
  '(-r --raw-output -j --join-output)'{-r,--raw-output}"[don't JSON-quote output if it's a string]" \
  '(-r --raw-output -j --join-output)'{-j,--join-output}"[like -r, without newlines between outputs]" \
  '(-f --from-file)'{-f,--from-file}'[read filter from file]:_files' \
  '-L+[prepend a directory to the module search path]:_directories' \
  '(-e --exit-status)'{-e,--exit-status}'[report "false" and "null" results via exit code]' \
  '*--arg[pre-set a variable to a string]: :_guard "|[A-Za-z][A-Za-z0-9]#" "variable name":value (string): ' \
  '*--argjson[pre-set a variable to an object]: :_guard "|[A-Za-z][A-Za-z0-9]#" "variable name":value (JSON): ' \
  '*--slurpfile[pre-set a variable to contents of a file]: :_guard "|[A-Za-z][A-Za-z0-9]#" "variable name":value (filename of file containing JSON):_files'
debug log:

solving 24eb4cf52 ...
found 24eb4cf52 in https://inbox.vuxu.org/zsh-workers/20171009001731.21365-1-danielsh@tarpaulin.shahaf.local2/

applying [1/1] https://inbox.vuxu.org/zsh-workers/20171009001731.21365-1-danielsh@tarpaulin.shahaf.local2/
diff --git a/Completion/Unix/Command/_jq b/Completion/Unix/Command/_jq
new file mode 100644
index 000000000..24eb4cf52

Checking patch Completion/Unix/Command/_jq...
Applied patch Completion/Unix/Command/_jq cleanly.

index at:
100644 24eb4cf527b99b3ed4b77092d4c4d29150a38b44	Completion/Unix/Command/_jq

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).