Initial cut of `onos-group` script for running a subset of commands
against multiple ONOS instances:
- onos-install
- onos-push-keys
- onos-kill
- onos-patch-vm
- onos-uninstall
onos-group is simply a wrapper that does minimal sanity checks. New
commands are added by adding them to the GOPTS list in ogroup-opts.
Reference: ONOS-536
Change-Id: Ib3055491fec80e8759e87594e81a88285546deaf
diff --git a/tools/test/bin/ogroup-opts b/tools/test/bin/ogroup-opts
new file mode 100644
index 0000000..e9b030c
--- /dev/null
+++ b/tools/test/bin/ogroup-opts
@@ -0,0 +1,14 @@
+# tab completion settings for onos-group.
+
+# options available to onos-group
+GOPTS='install kill patch-vm push-keys uninstall'
+
+function _ogroup-opts () {
+ local cur=${COMP_WORDS[COMP_CWORD]}
+
+ if [ $COMP_CWORD -eq 1 ]; then
+ COMPREPLY=( $( compgen -W "$GOPTS help" -- $cur ) )
+ fi
+}
+
+complete -F _ogroup-opts onos-group