summaryrefslogtreecommitdiff
blob: c13d334eb21dd3657c1e9560cc3b59a6b2818602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Gentoo Linux Repoman Command Completion
#
# $Id$
#
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later

# repoman completion by Jeremy Olexa <darkside@gentoo.org>

_repoman()
{
	local cur

	COMPREPLY=()
	cur=`_get_cword`

	case "$cur" in
		-*)
		COMPREPLY=( $( compgen -W '-h --help -m -M -p --pretend -q --quiet -f \
		--force -v --verbose -V --version -x --xmlparse -i --ignore-arches -I \
		--ignore-masked -d --include-dev --without-mask --mode=' -- $cur ) )
		;;
		*)
		if [ $COMP_CWORD -eq 1 ]; then
			COMPREPLY=( $( compgen -W 'ci commit fix full help manifest scan' \
			-- $cur ) )
		fi
		;;
	esac

	return 0

}
complete -F _repoman -o filenames repoman