Blame bash-completion-plague-client
|
Ville Skyttä |
b5b5ad |
# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
|
|
Ville Skyttä |
b5b5ad |
# ex: ts=8 sw=8 noet filetype=sh
|
|
Ville Skyttä |
b5b5ad |
|
|
Ville Skyttä |
b5b5ad |
# bash completion for plague-client
|
|
Ville Skyttä |
192263 |
|
|
Ville Skyttä |
192263 |
_plague_client()
|
|
Ville Skyttä |
192263 |
{
|
|
Ville Skyttä |
b5b5ad |
local cur
|
|
Ville Skyttä |
192263 |
|
|
Ville Skyttä |
b5b5ad |
COMPREPLY=()
|
|
Ville Skyttä |
b5b5ad |
cur=`_get_cword`
|
|
Ville Skyttä |
192263 |
|
|
Ville Skyttä |
b5b5ad |
[ $COMP_CWORD = 1 ] && \
|
|
Ville Skyttä |
b5b5ad |
COMPREPLY=( $( compgen -W 'build detail finish help is_paused \
|
|
Ville Skyttä |
b5b5ad |
kill list list_builders pause requeue unpause \
|
|
Ville Skyttä |
b5b5ad |
update_builders' -- $cur ) )
|
|
Ville Skyttä |
192263 |
|
|
Ville Skyttä |
b5b5ad |
return 0
|
|
Ville Skyttä |
192263 |
}
|
|
Ville Skyttä |
192263 |
complete -F _plague_client plague-client
|