summary refs log tree commit diff
path: root/Completion/Debian/Command/_apt-move
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2004-04-28 14:07:56 +0000
committerClint Adams <clint@users.sourceforge.net>2004-04-28 14:07:56 +0000
commit039b15b5160e41d727e3a5158601509b1b3dde7d (patch)
tree7d5249c335f6bf3433e6cf7bfc44277a18438933 /Completion/Debian/Command/_apt-move
parent28bd1b02cfbb1f06dfbccfe7c4e2e935666ee209 (diff)
downloadzsh-039b15b5160e41d727e3a5158601509b1b3dde7d.tar.gz
zsh-039b15b5160e41d727e3a5158601509b1b3dde7d.tar.xz
zsh-039b15b5160e41d727e3a5158601509b1b3dde7d.zip
* 19845: Completion/Debian/Command/_apt-move: apt-move
 completion function from Steven Kowalik.
Diffstat (limited to 'Completion/Debian/Command/_apt-move')
-rw-r--r--Completion/Debian/Command/_apt-move49
1 files changed, 49 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_apt-move b/Completion/Debian/Command/_apt-move
new file mode 100644
index 000000000..e011053fd
--- /dev/null
+++ b/Completion/Debian/Command/_apt-move
@@ -0,0 +1,49 @@
+#compdef apt-move
+
+local state line
+
+_arguments \
+  '-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' && return 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 && return 0
+  ;;
+  args)
+    case $line[1] in
+	  get|getlocal)
+	    # A directory or nothing
+		_files -/
+	  ;;
+	  movefile)
+	    # A .dsc or a .deb
+		_files -g "*.d(sc|eb)"
+	  ;;
+	esac
+  ;;
+esac
+
+return 1