PageRenderTime 60ms CodeModel.GetById 58ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 1ms

/bash_completion_lib/complete/remove_members

http://github.com/brinkman83/bashrc
#! | 31 lines | 22 code | 9 blank | 0 comment | 0 complexity | 3c7a2ff3876de6fa301e1789810df110 MD5 | raw file
 1# Mailman completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
 2
 3
 4comp_include _filedir _get_cword _mailman_lists
 5
 6
 7_remove_members()
 8{
 9	local cur prev
10
11	COMPREPLY=()
12	cur=`_get_cword`
13	prev=${COMP_WORDS[COMP_CWORD-1]}
14
15	case "$prev" in
16		-@(f|-file=))
17			_filedir
18			return 0
19			;;
20	esac
21
22	if [[ "$cur" == -* ]]; then
23		COMPREPLY=( $( compgen -W '--file= -f --all -a \
24			--fromall --nouserack -n --noadminack -N \
25			--help -h' -- $cur ) )
26	else
27		_mailman_lists
28	fi
29} # _remove_members()
30
31