pytools: Add completion script for obmcutil

Change-Id: Ia248f971e2c8a1ff80f1e6947ef0af283d4ec9ba
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/pytools/obmcutil-completion.sh b/pytools/obmcutil-completion.sh
new file mode 100644
index 0000000..9790025
--- /dev/null
+++ b/pytools/obmcutil-completion.sh
@@ -0,0 +1,11 @@
+_obmcutil() {
+    COMPREPLY=()
+    cur=${COMP_WORDS[COMP_CWORD]}
+
+    opts="bmcstate bootprogress chassiskill chassisoff chassison chassisstate hoststate power poweroff poweron state -h --help -v --verbose -w --wait"
+
+    # complete -* with long options.
+    COMPREPLY=($(compgen -W "$opts" -- $cur))
+}
+
+complete -F _obmcutil obmcutil