Compare commits
1 Commits
4ff886fab1
...
a2e113158b
| Author | SHA1 | Date |
|---|---|---|
|
|
a2e113158b |
|
|
@ -25,7 +25,7 @@
|
||||||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
# Description:
|
# Description:
|
||||||
# Completions for gpgconf (configuration utility provided with GnuPG 2.4.4
|
# Completions for gpgconf (configuration utility provided with GnuPG
|
||||||
# <https://gnupg.org>)
|
# <https://gnupg.org>)
|
||||||
#
|
#
|
||||||
# Authors:
|
# Authors:
|
||||||
|
|
@ -62,9 +62,6 @@ _arguments \
|
||||||
'--apply-profile[update configuration files using the specified file]:configuration file:_path_files' \
|
'--apply-profile[update configuration files using the specified file]:configuration file:_path_files' \
|
||||||
'--status-fd[write status info to the specified file descriptor]:file descriptor' \
|
'--status-fd[write status info to the specified file descriptor]:file descriptor' \
|
||||||
'--homedir[specify an alternative gnupg configuration home directory]:directory:_directories' \
|
'--homedir[specify an alternative gnupg configuration home directory]:directory:_directories' \
|
||||||
'--chuid[change the current user to uid which may either be a number or a name]:uid' \
|
|
||||||
'(--lock --unlock)--unlock[remove a stale lock file hold for file]:name' \
|
|
||||||
'(--lock --unlock)--lock[name of file protected by the lock]:name' \
|
|
||||||
'(-o --output)'{-o,--output}'[write output to the specified file]:output file:_path_files' \
|
'(-o --output)'{-o,--output}'[write output to the specified file]:output file:_path_files' \
|
||||||
'(-v --verbose)'{-v,--verbose}'[verbose]' \
|
'(-v --verbose)'{-v,--verbose}'[verbose]' \
|
||||||
'(-q --quiet)'{-q,--quiet}'[quiet]' \
|
'(-q --quiet)'{-q,--quiet}'[quiet]' \
|
||||||
|
|
|
||||||
13
src/_vnstat
13
src/_vnstat
|
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for vnstat 2.13 (https://github.com/vergoh/vnstat)
|
# Completion script for vnstat 2.10
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
|
@ -44,9 +44,7 @@ typeset -A opt_args
|
||||||
local period="-d --days -h --hours -m --months -w --weeks"
|
local period="-d --days -h --hours -m --months -w --weeks"
|
||||||
|
|
||||||
_arguments -C : \
|
_arguments -C : \
|
||||||
'--95th[show 95th percentile output for the ongoing month]' \
|
|
||||||
'--add[create database entry for interface specified]' \
|
'--add[create database entry for interface specified]' \
|
||||||
'--alert[show alert, use different exit status]:params' \
|
|
||||||
'(-b --begin)'{-b,--begin}'[begin the list output with a specific date]:date:' \
|
'(-b --begin)'{-b,--begin}'[begin the list output with a specific date]:date:' \
|
||||||
'--config[specify alternate configuration file]:file:_files' \
|
'--config[specify alternate configuration file]:file:_files' \
|
||||||
"($period)"{-d,--days}'[show traffic for days]' \
|
"($period)"{-d,--days}'[show traffic for days]' \
|
||||||
|
|
@ -55,7 +53,6 @@ _arguments -C : \
|
||||||
"($period)"{-w,--weeks}'[show traffic for 7 days]' \
|
"($period)"{-w,--weeks}'[show traffic for 7 days]' \
|
||||||
"($period)"{-y,--years}'[show traffic statistics for the last year]' \
|
"($period)"{-y,--years}'[show traffic statistics for the last year]' \
|
||||||
"($period)"{-5,--fiveminutes}'[show traffic statistic with a 5 minute resolution for the last hours]' \
|
"($period)"{-5,--fiveminutes}'[show traffic statistic with a 5 minute resolution for the last hours]' \
|
||||||
'--db[use file as database file instead of searching for a database]:db:_files' \
|
|
||||||
'--dbdir[specify database directory]:directory:_files -/' \
|
'--dbdir[specify database directory]:directory:_files -/' \
|
||||||
'--dbiflist[List interfaces currently in the database]::mode:->dbiflist' \
|
'--dbiflist[List interfaces currently in the database]::mode:->dbiflist' \
|
||||||
'(-D --debug)'{-D,--debug}'[show additional debug output]' \
|
'(-D --debug)'{-D,--debug}'[show additional debug output]' \
|
||||||
|
|
@ -71,10 +68,9 @@ _arguments -C : \
|
||||||
'(-l --live)'{-l,--live}'[display current transfer rate]:mode:->live' \
|
'(-l --live)'{-l,--live}'[display current transfer rate]:mode:->live' \
|
||||||
'--json[show database content in json format]' \
|
'--json[show database content in json format]' \
|
||||||
'--locale[specify locale]:locale:' \
|
'--locale[specify locale]:locale:' \
|
||||||
'--merge[merge interface data from source database to destination database]:src_dst' \
|
|
||||||
'--nick[set nickname for alias]:nickname:' \
|
'--nick[set nickname for alias]:nickname:' \
|
||||||
'--oneline[traffic summary in one-line, parseable format]' \
|
'--oneline[traffic summary in one-line, parseable format]' \
|
||||||
'(-q --query)'{-q,--query}'[force database query mode]::query:->query' \
|
'(-q --query)'{-q,--query}'[force database query mode]' \
|
||||||
'--remove[delete the database entry for the interface specified]' \
|
'--remove[delete the database entry for the interface specified]' \
|
||||||
'--rename[rename the interface specified in the database with new name]' \
|
'--rename[rename the interface specified in the database with new name]' \
|
||||||
'(-r --reset)'{-r,--reset}'[reset internal counters]' \
|
'(-r --reset)'{-r,--reset}'[reset internal counters]' \
|
||||||
|
|
@ -118,11 +114,6 @@ case "$state" in
|
||||||
'1[one interface per line]' \
|
'1[one interface per line]' \
|
||||||
&& ret=0
|
&& ret=0
|
||||||
;;
|
;;
|
||||||
(query)
|
|
||||||
_values 'query mode' \
|
|
||||||
'a[short summary output]' \
|
|
||||||
's[regular summary output]' && ret=0
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue