From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28331 invoked by alias); 5 Aug 2017 07:11:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41492 Received: (qmail 25419 invoked by uid 1010); 5 Aug 2017 07:11:42 -0000 X-Qmail-Scanner-Diagnostics: from nm5-vm9.bullet.mail.ir2.yahoo.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.82.96.116):SA:0(-2.8/5.0):. Processed in 4.614675 secs); 05 Aug 2017 07:11:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: okiddle@yahoo.co.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1501862303; bh=sQjR9g/7QFlqf0pZ/40epnboskVa0ELifq51wDl9png=; h=From:To:Subject:Date:From:Subject; b=T9WCUxYRWjfZUkD3HA/audxrBx53OPkb0MuFYTg/BKFhSOuG4/iD/E+SgO4nCgYzqYCqC1AO9ZCrgvTD83y4yhvEL31AS1IxA7s0nHTcDPCW5TMjjvtaMdGnmTa3GZauNRHncsZEUU9N5IG0WF44bdSxzNNRAD4x04m8jn8LFfsl5mUU5X6u2xHlAh2VvIYq+SrY/o1u66TUrxOITFGYJ2mq39g4NEoxo5R0AEcLtPylmn001m4p0WtlH47dVRW9NS0pD8V6nRKtGxADdhSP5s95KMKRKI2ulCdCEyqGDn2GGDghthjKK9Knorpd7xh0wpvjSdCsm3pgwl4NXgxSMQ== X-Yahoo-Newman-Id: 582897.73392.bm@smtp148.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _2gCZdQVM1mCz8k6I233VaQB1u8BuFyroe9De.Q93W8yD.V IzI0Q3LjUKtOMzkWJQK2xhkf9cLFU8j1hvnEXOFko2FzT.ND13ih.h8yzXxL ztFgQ5AMKKLV7_0vvjobSExNMpo8sjOQi6tieDXzj33528IVtJqV5N7JPIaN 3caPusLnpuzIwiUkgsB9Z.Nu6Wb41fff.miLw0RjyPiaAsE3F2sYQ7ztutDm jK9nZD2bitVRNgjTdH3yNFf6SsHuOdTnYYqEejyLqITJqprGJMIW.CBURH5e Wj_yXqQAyhipImwMvcUu1XCAGB7NNr20K.2p7SEozXU5KQZP9jccpaJkAtkI R9IIlabPdcUS3iRbRnwsp5MyzbQS2UwBmIQRGIT8ww36AVFnkS3FN3ORMIl_ 5vLqv4HGlRez.RXfqAdKfQi1FsfaxvzF_00Ci1IyT7j5M02WhkFP6vADyVCR i6dZGm7pW86zqu8KrWCK2zTcNBoAsybFux886E9fiycpSQYSSB5EivnvdFMK qJuGrySHtdMhWkHCx1HUp.iQNKFWus4PDZ38apLwp X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- From: Oliver Kiddle To: Zsh workers Subject: PATCH: update to a few more completions MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9804.1501862302.1@thecus.kiddle.eu> Date: Fri, 04 Aug 2017 17:58:22 +0200 Message-ID: <9805.1501862302@thecus.kiddle.eu> This is a further update to completion of options. Updates are up to the following versions: flex - 2.6.4, this was very outdated before gstat - FreeBSD 11.1 sudo - 1.8.20p2 sqlite - 3.20.0 Not too much has changed in terms of options for FreeBSD 11.1 unless we want to somehow handle libxo stuff. Oliver diff --git a/Completion/BSD/Command/_gstat b/Completion/BSD/Command/_gstat index 7baaf0d62..c60e54422 100644 --- a/Completion/BSD/Command/_gstat +++ b/Completion/BSD/Command/_gstat @@ -2,10 +2,12 @@ _arguments -s : \ '-a[only display providers that are at least 0.1% busy]' \ - '-b[batch mode]' \ + '(-B)-b[batch mode]' \ + '(-b)-B[endless batch mode]' \ '-c[enable the display geom(4) consumers]' \ '-d[enable the display delete operations]' \ '-f+[filter by regex]:regex' \ '-o[enable the display for other operations]' \ + "-s[enable blocks' size statistics]" \ '-I+[display refresh rate]:interval (ms)' \ '-p[only display physical providers]' diff --git a/Completion/Unix/Command/_flex b/Completion/Unix/Command/_flex index 7ca5b0f83..80b0cd7fc 100644 --- a/Completion/Unix/Command/_flex +++ b/Completion/Unix/Command/_flex @@ -1,35 +1,52 @@ -#compdef flex +#compdef flex flex++ local curcontext="$curcontext" state line ret=1 typeset -A opt_args -_arguments -C -s \ - --help --version \ - '-b[generate backing-up information]' \ - '-d[make scanner running in debug mode]' \ - '-f[generate fast scanner (full table)]' \ - '-h[show help]' \ - '-i[generate case-insensitive scanner]' \ - '-l[maximum compatibility with lex]' \ - '-p[generate performance report]' \ - '-s[suppress default rule]' \ - '-t[write scanner to stdout]' \ - '-v[show summary of statistics about scanner]' \ - '-w[suppress warnings]' \ - '-B[generate batch scanner]' \ - '-F[use fast scanner table representation]' \ - '-I[generate interactive scanner]' \ - '-L[don'"'"'t generate #line directives]' \ - '-T[trace mode]' \ - '-V[show version]' \ - '-7[generate 7-bit scanner]' \ - '-8[generate 8-bit scanner]' \ - '-\+[generate C++ scanner class]' \ +_arguments -C -s -S \ '-C-[specify degree of table compression]:table compression:->tabcomp' \ - '-o-[specify output file]:output file:_files' \ - '-P-[change yy prefix]:prefix string:' \ - '-S-[override skeleton file]:skeleton file:_files' \ - '*:input files:_files -g "*.(#i)(f|)lex(-.)"' && ret=0 + '--align[trade off larger tables for better memory alignment]' \ + '--ecs[construct equivalence classes]' \ + '--meta-ecs[construct meta-equivalence classes]' \ + '--read[use read() instead of stdio for scanner input]' \ + '(-f --full)'{-f,--full}'[generate fast scanner (full table)]' \ + '(-F --fast)'{-F,--fast}'[use fast scanner table representation]' \ + '(-d --debug)'{-d,--debug}'[enable debug mode in scanner]' \ + '(-b --backup)'{-b,--backup}'[write backup information to lex.backup]' \ + '(-p --perf-report)'{-p,--perf-report}'[generate performance report]' \ + '(-s --nodefault)'{-s,--nodefault}'[suppress default rule to ECHO unmatched text]' \ + '(-T --trace)'{-T,--trace}'[trace mode]' \ + '(-w --nowarn)'{-w,--nowarn}'[suppress warnings]' \ + '(-v --verbose)'{-v,--verbose}'[show summary of statistics about scanner]' \ + '--hex[use hexadecimal numbers instead of octal in debug outputs]' \ + '(-o --outfile)'{-o+,--outfile=}'[specify output file]:output file:_files' \ + '(-S --skel)'{-S+,--skel=}'-[override skeleton file]:skeleton file:_files' \ + '(-t --stdout)'{-t,--stdout}'[write scanner to stdout]' \ + '--yyclass=[specify name of C++ class]:class name' \ + '--header-file=-[create a C header file in addition to the scanner]:file:_files' \ + '--tables-file=-[write tables to file]::tables file:_files' \ + '(-7 -8 --7bit --8bit)'{-7,--7bit}'[generate 7-bit scanner]' \ + '(-7 -8 --7bit --8bit)'{-8,--8bit}'[generate 8-bit scanner]' \ + '(-B --batch -I --interactive)'{-B,--batch}'[generate batch scanner]' \ + '(-i --case-insensitive)'{-i,--case-insensitive}'[generate case-insensitive scanner]' \ + '(-l --lex-compat)'{-l,--lex-compat}'[maximum compatibility with original lex]' \ + '(-X --posix-compat)'{-l,--posix-compat}'[maximum compatibility with POSIX lex]' \ + '(-B --batch -I --interactive)'{-I,--interactive}'[generate interactive scanner]' \ + '--yylineno[track line count in yylineno]' \ + '-\+[generate C++ scanner class]' \ + '-D-[define macro]:macro' \ + '(-L --noline)'{-L,--noline}"[don't generate #line directives]" \ + '(-P --prefix)'{-P+,--prefix=}'[change yy prefix]:prefix string' \ + '(-R --reentrant)'{-R,--reentrant}'[generate a reentrant C scanner]' \ + '--bison-bridge[scanner for bison pure parser]' \ + '--bison-locations[include yylloc support]' \ + '--stdinit[initialize yyin/yyout to stdin/stdout]' \ + "--nounistd[don't include ]" \ + "--no-[don't generate a particular function]:function" \ + '(-c -n)'{-c,-n}'[do nothing]' \ + '(- *)'{-h,--help}'[display help information]' \ + '( *)'{-V,--version}'[display version information]' \ + '*:input file:_files -g "*.(#i)(f|)lex(-.)"' && ret=0 if [[ -n "$state" ]]; then _values -s '' 'table compression' \ @@ -38,7 +55,7 @@ if [[ -n "$state" ]]; then '(m)f[generate full tables]' \ '(m)F[generate fast tables]' \ '(f F)m[construct meta-equivalence classes]' \ - 'r[don'"'"'t use stdio library]' && ret=0 + "r[don't use stdio library]" && ret=0 fi return ret diff --git a/Completion/Unix/Command/_sqlite b/Completion/Unix/Command/_sqlite index 05027c603..df673894c 100644 --- a/Completion/Unix/Command/_sqlite +++ b/Completion/Unix/Command/_sqlite @@ -22,7 +22,7 @@ options+=( ) output_modes=( column HTML line list ) -(( $+sqlite3 )) && output_modes+=( csv ) +(( $+sqlite3 )) && output_modes+=( csv quote ) exclusive=( $^dashes-${^output_modes:l} ) for display_opt in $output_modes ; do # finagle the description to match the way SQLite's -help formats them @@ -32,8 +32,8 @@ for display_opt in $output_modes ; do done options+=( - $^dashes'-separator[set output field separator]:string to separate output fields:' - $^dashes'-nullvalue[set null value string]:string for NULL values:' + $^dashes'-separator[set output field separator]:output field separator [|]' + $^dashes'-nullvalue[set text string for null values]:string' '(- :)'$^dashes'-version[show SQLite version]' '(- :)'$^dashes'-help[show help]' '1:SQLite database file:_files' @@ -42,9 +42,12 @@ options+=( (( $+sqlite3 )) && options+=( $^dashes'-bail[stop after hitting an error]' + $^dashes'-cmd[run specified command before reading stdin]:sqlite meta-command' '(-*batch -*interactive)'$^dashes'-batch[force batch I/O]' '(-*batch -*interactive)'$^dashes'-interactive[force interactive I/O]' + $^dashes'-mmap[set default mmap size]:size' $^dashes'-stats[print memory stats before each finalize]' + $^dashes'-vfs[use specified default VFS]:vfs:(unix-dotfile unix-excl unix-none unix-namedsem)' ) _arguments $options diff --git a/Completion/Unix/Command/_sudo b/Completion/Unix/Command/_sudo index aa7a1a498..ec293d469 100644 --- a/Completion/Unix/Command/_sudo +++ b/Completion/Unix/Command/_sudo @@ -26,6 +26,7 @@ args=( '(-r --role)'{-r+,--role=}'[create SELinux security context with specified role]:role' '(-S --stdin)'{-S,--stdin}'[read password from standard input]' '(-t --type)'{-t+,--type=}'[create SELinux security context with specified type]:type' + '(-T --command-timeout)'{-T+,--command-timeout=}'[terminate command after specified time limit]:timeout' '(-U --other-user)'{-U+,--other-user=}'[in list mode, display privileges for user]:user:_users' '(-u --user)'{-u+,--user=}'[run command (or edit file) as specified user]:user:_users' '(-)'{-V,--version}'[display version information and exit]'