zsh-workers
 help / color / mirror / code / Atom feed
3513e10b723f8f6037cb6283f8eb88c9ec5aa323 blob 749 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#compdef getrandom

local min=0 max=$(( 2 ** 32 - 1 ))

_arguments -s -S : \
  '(-r -s)-a+[assign result to specified array parameter]:array parameter:_parameters -g "*array*~*readonly*"' \
  '(-a)-s+[assign result to specified scalar parameter]:scalar parameter:_parameters -g "*(integer|scalar)*~*readonly*"' \
  '(-r)-i[produce random data as 32-bit unsigned integers]' \
  '-l+[specify length of data]: :_numbers -d8 -l1 -m64 -u "bytes or integer elements" "data length"' \
  '(-i -L -U)-r[produce random data as raw bytes]' \
  '(-r)-L+[specify integer lower bound (implies -i)]: :_numbers -d$min -l$min -m$max "integer lower bound"' \
  '(-r)-U+[specify integer upper bound (implies -i)]: :_numbers -d$max -l$min -m$max "integer upper bound"'
debug log:

solving 3513e10b7 ...
found 3513e10b7 in https://inbox.vuxu.org/zsh-workers/41205a86-8aad-4821-baa4-1d2ac9bf3c5d@app.fastmail.com/

applying [1/1] https://inbox.vuxu.org/zsh-workers/41205a86-8aad-4821-baa4-1d2ac9bf3c5d@app.fastmail.com/
diff --git a/Completion/Zsh/Command/_getrandom b/Completion/Zsh/Command/_getrandom
new file mode 100644
index 000000000..3513e10b7

Checking patch Completion/Zsh/Command/_getrandom...
Applied patch Completion/Zsh/Command/_getrandom cleanly.

index at:
100644 3513e10b723f8f6037cb6283f8eb88c9ec5aa323	Completion/Zsh/Command/_getrandom

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).