From 2f4b690c7a32f38422f0f2b9c4d231f590145091 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sat, 29 Aug 2015 16:12:02 +0000 Subject: 36321: _debcheckout: New completion. --- ChangeLog | 5 +++++ Completion/Debian/Command/_debcheckout | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Completion/Debian/Command/_debcheckout diff --git a/ChangeLog b/ChangeLog index 05b478624..5d899bfc0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-08-29 Daniel Shahaf + + * 36321: Completion/Debian/Command/_debcheckout: _debcheckout: + New completion. + 2015-08-28 Daniel Shahaf * 36306: Completion/Unix/Command/_subversion: _subversion: diff --git a/Completion/Debian/Command/_debcheckout b/Completion/Debian/Command/_debcheckout new file mode 100644 index 000000000..3e6d5df7d --- /dev/null +++ b/Completion/Debian/Command/_debcheckout @@ -0,0 +1,21 @@ +#compdef debcheckout + +# The helpstrings use the term 'checkout' (rather than 'clone' or 'branch' or +# 'fork') to be consistent with the name of the tool. + +local -a args=( +'(-a --auth)'{-a,--auth}'[rewrite anonymous checkout URLs to authenticated ones]' +'(-p --print -d --details)'{-d,--details}'[print detailed information; do not checkout]' +'(-h --help)'{-h,--help}'[show usage message]' +'(-p --print -d --details)'{-p,--print}'[print summary information; do not checkout]' +'(-P --package)'{-P+,--package=}'[specify package name explicitly (when target is a URL)]:package name:_deb_packages available' +'(-t --type)'{-t+,--type=}'[specify repository type]:repository type:((arch\:Arch bzr\:Bazaar cvs\:CVS darcs\:Darcs git\:Git hg\:Mercurial svn\:Subversion))' +'(-u --username)'{-u+,--username=}'[specify username (implies --auth)]:username: ' +\*{-f+,--file=}'[extract named file]:remote filename' +'--source=:policy for .orig.tar.gz file:(never auto download-only always)' +'--git-track=[specify branches to track]:branches (separated by spaces) or '\'\*\' +'1:package or URL: _alternative "_deb_packages available" "_urls"' +'2::destination directory:_path_files -/' +) + +_arguments -s -S : "$args[@]" -- cgit 1.4.1