summary refs log tree commit diff
path: root/Completion/Debian/Command
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-04-17 18:49:56 +0000
committerClint Adams <clint@users.sourceforge.net>2005-04-17 18:49:56 +0000
commit164ddacc853f11dabed33c0b5f8a3eb75f50e623 (patch)
tree4dec746b89191a300744d7ef981c17b91244c658 /Completion/Debian/Command
parent5971f3264cf892e6469217d43c1d7dc25efdcc3f (diff)
downloadzsh-164ddacc853f11dabed33c0b5f8a3eb75f50e623.tar.gz
zsh-164ddacc853f11dabed33c0b5f8a3eb75f50e623.tar.xz
zsh-164ddacc853f11dabed33c0b5f8a3eb75f50e623.zip
* 21153: incorporate most of the features of Stephen Rueger's
 _module-assistant, posted as 21152.
Diffstat (limited to 'Completion/Debian/Command')
-rw-r--r--Completion/Debian/Command/_module-assistant26
1 files changed, 23 insertions, 3 deletions
diff --git a/Completion/Debian/Command/_module-assistant b/Completion/Debian/Command/_module-assistant
index 60eab6615..11c587b3f 100644
--- a/Completion/Debian/Command/_module-assistant
+++ b/Completion/Debian/Command/_module-assistant
@@ -1,6 +1,26 @@
 #compdef module-assistant m-a
 
-_arguments \
+typeset -a _module_assistant_commands
+
+_module_assistant_commands=(
+    "update[synchronize version index files]"
+    "prepare[install required kernel headers package]"
+    "fakesource[install required kernel source package]"
+    "list[a print a list of details about available packages]"
+    "list-available[b print a list of details about available packages ]"
+    "la[c print a list of details about available packages  ]"
+    "list-installed[ print a list of details about installed packages ]"
+    "li[print a list of details about installed packages  ]"
+    "search[search for packages]"
+    "get[install specified source package]"
+    "build[build specified packages]"
+    "install[install specified packages]"
+    "auto-install[do all necessary steps to install specified packages]"
+    "clean[clear build directories of the kernel packages]"
+    "purge[clear cache and remove all binary packages of source package]"
+)
+
+_arguments -A \
  '(-h --help)'{-h,--help}'[print help screen]' \
  '(-v --verbose)'{-v,--verbose}'[Be verbose, show full paths, etc.]' \
  '(-q --quiet)'{-q,--quiet}'[The opposite of verbose]' \
@@ -12,6 +32,6 @@ _arguments \
  '(-l --kvers-list)'{-l,--kvers-list}'[List of kernel versions to work on (default: current version)]:kernel version list:' \
  '(-k --kernel-dir)'{-k,--kernel-dir}'[List of kernel headers/source directories, comma separated]:list of dirs:_files -/' \
  '(-t --text-mode)'{-t,--text-mode}'[no progress bars]' \
- '1:list of commands:_values -s , subcommands update get build list install auto-install prepare clean purge' \
- '*:packages: compadd ${${${$(ls /usr/src/modass/var_cache_modass/*.avail_version)}:t}%.avail_version}'
+ '1:list of commands:_values -s , subcommands "${_module_assistant_commands[@]}"' \
+ '*:packages: compadd /usr/src/modass/var_cache_modass/*.avail_version(N:t:r) /var/cache/modass/*.avail_version(N:t:r)'