You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
525 B
20 lines
525 B
#/usr/bin/env bash
|
|
|
|
_initCloud_completion () {
|
|
KAZ_ROOT=$(cd "$(dirname ${COMP_WORDS[0]})"/..; pwd)
|
|
COMPREPLY=()
|
|
. "${KAZ_ROOT}/bin/.commonFunctions.sh"
|
|
setKazVars
|
|
local cword=${COMP_CWORD} cur=${COMP_WORDS[COMP_CWORD]}
|
|
case "${cword}" in
|
|
1)
|
|
# orga name
|
|
local available_orga=$("${KAZ_BIN_DIR}/kazList.sh" "service" "cloud" 2>/dev/null)
|
|
COMPREPLY=($(compgen -W "${available_orga}" -- "${cur}"))
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
return 0
|
|
}
|
|
complete -F _initCloud_completion initCloud.sh
|
|
|