blob: 3b4248c6ee2492608a9a43091a0bd21a8168210f [file] [log] [blame]
Ayaka Koshibeaec629622015-01-05 20:33:29 -08001
Thomas Vachuska4bfccd542015-05-30 00:35:25 -07002# Tab completion settings for onos-group.
Ayaka Koshibeaec629622015-01-05 20:33:29 -08003function _ogroup-opts () {
4 local cur=${COMP_WORDS[COMP_CWORD]}
Ayaka Koshibeaec629622015-01-05 20:33:29 -08005 if [ $COMP_CWORD -eq 1 ]; then
Thomas Vachuska4bfccd542015-05-30 00:35:25 -07006 COMPREPLY=( $( compgen -W "install kill patch-vm push-keys uninstall help" -- $cur ) )
Ayaka Koshibeaec629622015-01-05 20:33:29 -08007 fi
8}
9
10complete -F _ogroup-opts onos-group
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070011
12
13# Tab completion settings for stc
14function _stc-opts () {
15 local cur=${COMP_WORDS[COMP_CWORD]}
16 if [ $COMP_CWORD -eq 1 ]; then
17 COMPREPLY=( $( compgen -W "$(cd $ONOS_ROOT/tools/test/scenarios && ls -1 | sed 's/.xml//g')" -- $cur ) )
18 fi
19}
20
21complete -F _stc-opts stc
22
23
24# Tab completion settings for cell
25function _cell-opts () {
26 local cur=${COMP_WORDS[COMP_CWORD]}
27 if [ $COMP_CWORD -eq 1 ]; then
28 COMPREPLY=( $( compgen -W "$(cd $ONOS_ROOT/tools/test/cells && ls -1)" -- $cur ) )
29 fi
30}
31
32complete -F _cell-opts cell
33
34
35# Tab completion settings for onos-create-app.
36function _ocapp-opts () {
37 local cur=${COMP_WORDS[COMP_CWORD]}
38 if [ $COMP_CWORD -eq 1 ]; then
39 COMPREPLY=( $( compgen -W "bundle ui cli" -- $cur ) )
40 fi
41}
42
43complete -F _ocapp-opts onos-create-app