about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-11-19 03:35:01 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-11-19 03:35:01 +0000
commitf850793f055c03a29b281449b2f56f0f08b60fd0 (patch)
tree6786b51f3bda7c285d5b64343f9e2e5b02f6dbfd /Completion
parentdaa22a771dde6323ed35b7b0bdf7f90ed33a0420 (diff)
downloadzsh-f850793f055c03a29b281449b2f56f0f08b60fd0.tar.gz
zsh-f850793f055c03a29b281449b2f56f0f08b60fd0.tar.xz
zsh-f850793f055c03a29b281449b2f56f0f08b60fd0.zip
23685: Merge new completions onto the 4.2 branch.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/BSD/Command/_csup23
-rw-r--r--Completion/BSD/Command/_portlint17
-rw-r--r--Completion/BSD/Command/_portsnap29
3 files changed, 69 insertions, 0 deletions
diff --git a/Completion/BSD/Command/_csup b/Completion/BSD/Command/_csup
new file mode 100644
index 000000000..1a19bd1e5
--- /dev/null
+++ b/Completion/BSD/Command/_csup
@@ -0,0 +1,23 @@
+#compdef csup
+
+_arguments -s \
+    '-1[disable automatic retries]' \
+    '-4[Force usage of IPv4 addresses]' \
+    '-6[Force usage of IPv6 addresses]' \
+    '-A:local address:_hosts' \
+    '-b:base directory:_files -/' \
+    '-c:collections directory:_files -/' \
+    '-d:maximum number of deleted files:' \
+    '-h:server host:_hosts' \
+    '-i:file pattern:' \
+    '-k[keep temporary copies of failed updates]' \
+    '-l:lock file:_files' \
+    '-L:verbosity level:(0 1 2)' \
+    '-p:port:_ports' \
+    '-r:maximum number of retries:' \
+    '-s[suppress status checks]' \
+    '-v[print version information]' \
+    '(-Z)-z[enable compression]' \
+    '(-z)-Z[disable compression]' \
+    ':csup file:_files' \
+    ':destination directory:_files -/'
diff --git a/Completion/BSD/Command/_portlint b/Completion/BSD/Command/_portlint
new file mode 100644
index 000000000..d3619bbca
--- /dev/null
+++ b/Completion/BSD/Command/_portlint
@@ -0,0 +1,17 @@
+#compdef portlint
+
+_arguments -s \
+    '-a[additional check for scripts/* and pkg-*]' \
+    '-A[turn on all additional checks (equivalent to -abcNt)]' \
+    '-b[warn $(VARIABLE)]' \
+    '-c[committer mode]' \
+    '-C[pedantic committer mode (equivalent to -abct)]' \
+    '-g[group errors together to avoid duplication (disabled if -v is specified)]' \
+    '-h[show summary of command line options]' \
+    '-v[verbose mode]' \
+    '-t[nit pick about use of spaces]' \
+    '-N[writing a new port]' \
+    '-V[print the version and exit]' \
+    '-M:set make variables to ENV (ex. PORTSDIR=/usr/ports.work):_guard ".#" "environment vars"' \
+    '-B:allow # contiguous blank lines:_guard "[0-9]#" "numeric value"' \
+    ':port directory:_files -/'
diff --git a/Completion/BSD/Command/_portsnap b/Completion/BSD/Command/_portsnap
new file mode 100644
index 000000000..1808bcd20
--- /dev/null
+++ b/Completion/BSD/Command/_portsnap
@@ -0,0 +1,29 @@
+#compdef portsnap
+
+local context state line
+typeset -A opt_args
+
+flags=(
+  '(cron)fetch[Fetch a compressed snapshot or update existing one]'
+  '(fetch)cron[Sleep rand(3600) seconds, and then fetch updates]'
+  '(update)extract[Extract snapshot, replacing existing files and dirs]'
+  '(extract)update[Update ports tree to match current snapshot]'
+)
+
+_arguments -C -s \
+    '-d:Store working files in workdir:_files -/' \
+    '-f:Read configuration options from conffile:_files' \
+    '-I[Update INDEX only. (update command only)]' \
+    '-k:Trust an RSA key with SHA256 hash of KEY:_files' \
+    '-l:Merge the specified local describes file into the INDEX:_files' \
+    '-p:Location of uncompressed ports tree:_files -/' \
+    '-s:Server from which to fetch updates:_hosts' \
+    '*:principal:->principal' && ret=0
+
+if [[ $state == principal ]]; then
+  _alternative \
+    ':file flag:_values -S " " -w "commands" $flags[@]' \
+    '*:path:_files -/'
+fi
+
+return ret