plague-client: New completion.
This commit is contained in:
parent
7db1c8e264
commit
55ec6a079b
@ -214,6 +214,7 @@ bashcomp_DATA = a2x \
|
|||||||
pkg-config \
|
pkg-config \
|
||||||
pkg_delete \
|
pkg_delete \
|
||||||
pkgtool \
|
pkgtool \
|
||||||
|
plague-client \
|
||||||
pm-hibernate \
|
pm-hibernate \
|
||||||
pm-is-supported \
|
pm-is-supported \
|
||||||
pm-powersave \
|
pm-powersave \
|
||||||
|
14
completions/plague-client
Normal file
14
completions/plague-client
Normal 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
|
1
test/completion/plague-client.exp
Normal file
1
test/completion/plague-client.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions plague-client
|
20
test/lib/completions/plague-client.exp
Normal file
20
test/lib/completions/plague-client.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "plague-client "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
Loading…
x
Reference in New Issue
Block a user