[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-503-g55ec6a0

Ville Skyttä ville.skytta at iki.fi
Fri Nov 4 20:36:00 UTC 2011


The following commit has been merged in the master branch:
commit 55ec6a079b0a66eca2e4ed56f0757fc7c4ce34a5
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Fri Nov 4 22:35:45 2011 +0200

    plague-client: New completion.

diff --git a/completions/Makefile.am b/completions/Makefile.am
index 2120192..a570623 100644
--- a/completions/Makefile.am
+++ b/completions/Makefile.am
@@ -214,6 +214,7 @@ bashcomp_DATA = a2x \
 		pkg-config \
 		pkg_delete \
 		pkgtool \
+		plague-client \
 		pm-hibernate \
 		pm-is-supported \
 		pm-powersave \
diff --git a/completions/plague-client b/completions/plague-client
new file mode 100644
index 0000000..b538546
--- /dev/null
+++ b/completions/plague-client
@@ -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
diff --git a/test/completion/plague-client.exp b/test/completion/plague-client.exp
new file mode 100644
index 0000000..6f9a937
--- /dev/null
+++ b/test/completion/plague-client.exp
@@ -0,0 +1 @@
+assert_source_completions plague-client
diff --git a/test/lib/completions/aclocal.exp b/test/lib/completions/plague-client.exp
similarity index 76%
copy from test/lib/completions/aclocal.exp
copy to test/lib/completions/plague-client.exp
index da133aa..ddcc849 100644
--- a/test/lib/completions/aclocal.exp
+++ b/test/lib/completions/plague-client.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "aclocal "
+assert_complete_any "plague-client "
 
 
 sync_after_int

-- 
bash-completion



More information about the Bash-completion-commits mailing list