plague-client: New completion.

master
Ville Skyttä 2011-11-04 22:35:45 +02:00
parent 7db1c8e264
commit 55ec6a079b
4 changed files with 36 additions and 0 deletions

View File

@ -214,6 +214,7 @@ bashcomp_DATA = a2x \
pkg-config \
pkg_delete \
pkgtool \
plague-client \
pm-hibernate \
pm-is-supported \
pm-powersave \

14
completions/plague-client Normal file
View File

@ -0,0 +1,14 @@
# bash completion for plague-client -*- shell-script -*-
_plague_client()
{
local cur prev words cword
_init_completion || return
[[ $cword -eq 1 ]] && \
COMPREPLY=( $( compgen -W 'build detail finish help is_paused kill list
list_builders pause requeue unpause update_builders' -- "$cur" ) )
} &&
complete -F _plague_client plague-client
# ex: ts=4 sw=4 et filetype=sh

View File

@ -0,0 +1 @@
assert_source_completions plague-client

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}
proc teardown {} {
assert_env_unmodified
}
setup
assert_complete_any "plague-client "
sync_after_int
teardown