zsh-workers
 help / color / mirror / code / Atom feed
d97e36918c6fc4a18d60be39113de8c10747dfcf blob 847 bytes (raw)

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

#Thans to dana for providing this completion function

local lmin=0 lmax=$(( 2 ** 32 - 2 )) umin=1 umax=$(( 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]' \
  '-c+[specify count of data]: :_numbers -d8 -l1 -m64 -u "bytes or integer elements" "data length"' \
  '(-i -L -U)-r[produce random data as raw binary bytes]' \
  '(-r)-L+[specify integer lower bound (implies -i)]: :_numbers -d$lmin -l$lmin -m$max "integer lower bound"' \
  '(-r)-U+[specify integer upper bound (implies -i)]: :_numbers -d$umax -l$umin -m$max "integer upper bound"'
debug log:

solving d97e36918 ...
found d97e36918 in https://inbox.vuxu.org/zsh-workers/6275a5ac-3a47-f591-7b3c-380ec4fed5ac@zentaur.org/

applying [1/1] https://inbox.vuxu.org/zsh-workers/6275a5ac-3a47-f591-7b3c-380ec4fed5ac@zentaur.org/
diff --git a/Completion/Zsh/Command/_getrandom b/Completion/Zsh/Command/_getrandom
new file mode 100644
index 000000000..d97e36918

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

index at:
100644 d97e36918c6fc4a18d60be39113de8c10747dfcf	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).