Ayaka Koshibe | aec62962 | 2015-01-05 20:33:29 -0800 | [diff] [blame] | 1 | |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 2 | # Tab completion settings for onos-group. |
Ayaka Koshibe | aec62962 | 2015-01-05 20:33:29 -0800 | [diff] [blame] | 3 | function _ogroup-opts () { |
| 4 | local cur=${COMP_WORDS[COMP_CWORD]} |
Ayaka Koshibe | aec62962 | 2015-01-05 20:33:29 -0800 | [diff] [blame] | 5 | if [ $COMP_CWORD -eq 1 ]; then |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 6 | COMPREPLY=( $( compgen -W "install kill patch-vm push-keys uninstall help" -- $cur ) ) |
Ayaka Koshibe | aec62962 | 2015-01-05 20:33:29 -0800 | [diff] [blame] | 7 | fi |
| 8 | } |
| 9 | |
| 10 | complete -F _ogroup-opts onos-group |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 11 | |
| 12 | |
| 13 | # Tab completion settings for stc |
| 14 | function _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 | |
| 21 | complete -F _stc-opts stc |
| 22 | |
| 23 | |
| 24 | # Tab completion settings for cell |
| 25 | function _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 | |
| 32 | complete -F _cell-opts cell |
| 33 | |
| 34 | |
| 35 | # Tab completion settings for onos-create-app. |
| 36 | function _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 | |
| 43 | complete -F _ocapp-opts onos-create-app |