about summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-04-30 03:51:44 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-04-30 03:51:44 +0000
commitc82d284f3861242c1e84f46bdfacaab000edf274 (patch)
tree15400a416008f46b20fb40e6ecb9bead438743e8 /Completion/Debian
parent7ed6192c44c8ce2708e78ea454a2c173424880fc (diff)
downloadzsh-c82d284f3861242c1e84f46bdfacaab000edf274.tar.gz
zsh-c82d284f3861242c1e84f46bdfacaab000edf274.tar.xz
zsh-c82d284f3861242c1e84f46bdfacaab000edf274.zip
Merge of 21294: fix incorrectly capitalized completion descriptions.
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/Command/_apt-move54
1 files changed, 54 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_apt-move b/Completion/Debian/Command/_apt-move
new file mode 100644
index 000000000..a72378e6f
--- /dev/null
+++ b/Completion/Debian/Command/_apt-move
@@ -0,0 +1,54 @@
+#compdef apt-move
+
+local curcontext="$curcontext" state line cmds ret=1
+typeset -A opt_args
+
+_arguments -C \
+  '-a[process all packages]' \
+  '-c[specify an alternative configuration file]' \
+  '-d[override the DIST setting]' \
+  '-f[override the MAXDELETE setting]' \
+  '-q[be quiet; suppress normal output]' \
+  '-t[show what apt-move would do, but do not actually do anything]' \
+  '1: :->cmds' \
+  '*: :->args' && ret=0
+
+case $state in
+  cmds)
+    cmds=(
+      'get:update your master files from local apt'
+      'getlocal:alias of get'
+      'fsck:fix broken repositories'
+      'move:move cache files into mirror tree'
+      'movefile:move files into the repository'
+      'delete:delete obsolete packages'
+      'packages:create new local Packages files'
+      'update:alias for: get move delete packages'
+      'local:alias for: move delete packages'
+      'localupdate:alias for: getlocal move delete packages'
+      'mirror:update your local mirror from remote rsync site'
+      'sync:same as mirror, but only gets packages that you currently have installed on your system'
+      'exclude:prints a list of all packages EXCLUDED from the mirror by the .exclude file'
+      'listbin:prints lists of packages which can serve as the input to mirrorbin(mirror,sync,repo)'
+      'listsrc:same as listbin, but lists source packages'
+      'mirrorbin:same as mirror, but gets the packages specified on stdin'
+      'mirrorsrc:same as mirrorbin, but gets source packages'
+    )
+    _describe -t commands 'apt-move command' cmds && ret=0
+  ;;
+  args)
+    case $line[1] in
+      get|getlocal)
+        _directories && ret=0
+      ;;
+      movefile)
+        _files -g "*.d(sc|eb)(-.)" && ret=0
+      ;;
+      listbin)
+        _wanted lists expl list compadd mirror sync repo
+      ;;
+    esac
+  ;;
+esac
+
+return ret