1
# bash completion for OpenVista command-line utilities
4
# Copyright (C) 2009 Medsphere Systems Corporation
6
# This program is free software; you can redistribute it and/or modify it solely
7
# under the terms of the GNU Affero General Public License version 3 as published
8
# by the Free Software Foundation.
10
# This program is distributed in the hope that it will be useful, but WITHOUT
11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
15
# You should have received a copy of the GNU Affero General Public License
16
# along with this program. If not, see <http://www.gnu.org/licenses>.
18
# You can contact Medsphere Systems Corporation headquarters at 1917 Palomar
19
# Oaks Way, Suite 200, Carlsbad, CA 92008 or at legal@medsphere.com.
22
_openvista_instances()
25
cur=${COMP_WORDS[COMP_CWORD]}
26
if [ $COMP_CWORD -eq 1 ]; then
27
COMPREPLY=( $(compgen -W "$(ls -1 $root 2> /dev/null)" $cur ) )
31
complete -F _openvista_instances openvista
32
complete -F _openvista_instances ovtied
33
complete -F _openvista_instances ovbackup