2009-03-14 21:09:35 +00:00
|
|
|
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
|
|
|
|
# ex: ts=8 sw=8 noet filetype=sh
|
|
|
|
|
|
|
|
# bash completion for plague-client
|
2005-11-28 20:26:32 +00:00
|
|
|
|
|
|
|
_plague_client()
|
|
|
|
{
|
2009-03-14 21:09:35 +00:00
|
|
|
local cur
|
2005-11-28 20:26:32 +00:00
|
|
|
|
2009-03-14 21:09:35 +00:00
|
|
|
COMPREPLY=()
|
|
|
|
cur=`_get_cword`
|
2005-11-28 20:26:32 +00:00
|
|
|
|
2009-03-14 21:09:35 +00:00
|
|
|
[ $COMP_CWORD = 1 ] && \
|
|
|
|
COMPREPLY=( $( compgen -W 'build detail finish help is_paused \
|
|
|
|
kill list list_builders pause requeue unpause \
|
|
|
|
update_builders' -- $cur ) )
|
2005-11-28 20:26:32 +00:00
|
|
|
|
2009-03-14 21:09:35 +00:00
|
|
|
return 0
|
2005-11-28 20:26:32 +00:00
|
|
|
}
|
|
|
|
complete -F _plague_client plague-client
|