_vanta-cli() {
local i cur prev opts cmd
COMPREPLY=()
if [[ "${BASH_VERSINFO[0]}" -ge 4 ]]; then
cur="$2"
else
cur="${COMP_WORDS[COMP_CWORD]}"
fi
prev="$3"
cmd=""
opts=""
for i in "${COMP_WORDS[@]:0:COMP_CWORD}"
do
case "${cmd},${i}" in
",$1")
cmd="vanta__cli"
;;
vanta__cli,audit-index)
cmd="vanta__cli__subcmd__audit__subcmd__index"
;;
vanta__cli,completions)
cmd="vanta__cli__subcmd__completions"
;;
vanta__cli,delete)
cmd="vanta__cli__subcmd__delete"
;;
vanta__cli,export)
cmd="vanta__cli__subcmd__export"
;;
vanta__cli,get)
cmd="vanta__cli__subcmd__get"
;;
vanta__cli,help)
cmd="vanta__cli__subcmd__help"
;;
vanta__cli,import)
cmd="vanta__cli__subcmd__import"
;;
vanta__cli,list)
cmd="vanta__cli__subcmd__list"
;;
vanta__cli,namespace)
cmd="vanta__cli__subcmd__namespace"
;;
vanta__cli,put)
cmd="vanta__cli__subcmd__put"
;;
vanta__cli,query)
cmd="vanta__cli__subcmd__query"
;;
vanta__cli,rebuild-index)
cmd="vanta__cli__subcmd__rebuild__subcmd__index"
;;
vanta__cli,repair-text-index)
cmd="vanta__cli__subcmd__repair__subcmd__text__subcmd__index"
;;
vanta__cli,search)
cmd="vanta__cli__subcmd__search"
;;
vanta__cli,server)
cmd="vanta__cli__subcmd__server"
;;
vanta__cli,status)
cmd="vanta__cli__subcmd__status"
;;
vanta__cli__subcmd__help,audit-index)
cmd="vanta__cli__subcmd__help__subcmd__audit__subcmd__index"
;;
vanta__cli__subcmd__help,completions)
cmd="vanta__cli__subcmd__help__subcmd__completions"
;;
vanta__cli__subcmd__help,delete)
cmd="vanta__cli__subcmd__help__subcmd__delete"
;;
vanta__cli__subcmd__help,export)
cmd="vanta__cli__subcmd__help__subcmd__export"
;;
vanta__cli__subcmd__help,get)
cmd="vanta__cli__subcmd__help__subcmd__get"
;;
vanta__cli__subcmd__help,help)
cmd="vanta__cli__subcmd__help__subcmd__help"
;;
vanta__cli__subcmd__help,import)
cmd="vanta__cli__subcmd__help__subcmd__import"
;;
vanta__cli__subcmd__help,list)
cmd="vanta__cli__subcmd__help__subcmd__list"
;;
vanta__cli__subcmd__help,namespace)
cmd="vanta__cli__subcmd__help__subcmd__namespace"
;;
vanta__cli__subcmd__help,put)
cmd="vanta__cli__subcmd__help__subcmd__put"
;;
vanta__cli__subcmd__help,query)
cmd="vanta__cli__subcmd__help__subcmd__query"
;;
vanta__cli__subcmd__help,rebuild-index)
cmd="vanta__cli__subcmd__help__subcmd__rebuild__subcmd__index"
;;
vanta__cli__subcmd__help,repair-text-index)
cmd="vanta__cli__subcmd__help__subcmd__repair__subcmd__text__subcmd__index"
;;
vanta__cli__subcmd__help,search)
cmd="vanta__cli__subcmd__help__subcmd__search"
;;
vanta__cli__subcmd__help,server)
cmd="vanta__cli__subcmd__help__subcmd__server"
;;
vanta__cli__subcmd__help,status)
cmd="vanta__cli__subcmd__help__subcmd__status"
;;
vanta__cli__subcmd__help__subcmd__namespace,info)
cmd="vanta__cli__subcmd__help__subcmd__namespace__subcmd__info"
;;
vanta__cli__subcmd__help__subcmd__namespace,list)
cmd="vanta__cli__subcmd__help__subcmd__namespace__subcmd__list"
;;
vanta__cli__subcmd__namespace,help)
cmd="vanta__cli__subcmd__namespace__subcmd__help"
;;
vanta__cli__subcmd__namespace,info)
cmd="vanta__cli__subcmd__namespace__subcmd__info"
;;
vanta__cli__subcmd__namespace,list)
cmd="vanta__cli__subcmd__namespace__subcmd__list"
;;
vanta__cli__subcmd__namespace__subcmd__help,help)
cmd="vanta__cli__subcmd__namespace__subcmd__help__subcmd__help"
;;
vanta__cli__subcmd__namespace__subcmd__help,info)
cmd="vanta__cli__subcmd__namespace__subcmd__help__subcmd__info"
;;
vanta__cli__subcmd__namespace__subcmd__help,list)
cmd="vanta__cli__subcmd__namespace__subcmd__help__subcmd__list"
;;
*)
;;
esac
done
case "${cmd}" in
vanta__cli)
opts="-d -v -h -V --db --verbose --help --version put get list rebuild-index audit-index repair-text-index export import query status completions search delete namespace server help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__audit__subcmd__index)
opts="-d -v -h --namespace --json --deep --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--namespace)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__completions)
opts="-d -v -h --shell --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--shell)
COMPREPLY=($(compgen -W "bash zsh fish powershell" -- "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__delete)
opts="-d -v -h --namespace --key --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--namespace)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--key)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__export)
opts="-d -v -h --namespace --out --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--namespace)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--out)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__get)
opts="-d -v -h --namespace --key --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--namespace)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--key)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help)
opts="put get list rebuild-index audit-index repair-text-index export import query status completions search delete namespace server help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__audit__subcmd__index)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__completions)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__delete)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__export)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__get)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__help)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__import)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__list)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__namespace)
opts="list info"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__namespace__subcmd__info)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__namespace__subcmd__list)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__put)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__query)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__rebuild__subcmd__index)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__repair__subcmd__text__subcmd__index)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__search)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__server)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__help__subcmd__status)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__import)
opts="-d -v -h --input --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--input)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__list)
opts="-d -v -h --namespace --limit --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--namespace)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--limit)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__namespace)
opts="-d -v -h --db --verbose --help list info help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__namespace__subcmd__help)
opts="list info help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__namespace__subcmd__help__subcmd__help)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__namespace__subcmd__help__subcmd__info)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__namespace__subcmd__help__subcmd__list)
opts=""
if [[ ${cur} == -* || ${COMP_CWORD} -eq 4 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__namespace__subcmd__info)
opts="-d -v -h --db --verbose --help <NAMESPACE>"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__namespace__subcmd__list)
opts="-d -v -h --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__put)
opts="-d -v -h --namespace --key --payload --vector --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--namespace)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--key)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--payload)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--vector)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__query)
opts="-d -v -h --limit --db --verbose --help <QUERY>"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--limit)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__rebuild__subcmd__index)
opts="-d -v -h --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__repair__subcmd__text__subcmd__index)
opts="-d -v -h --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__search)
opts="-d -v -h --namespace --query --limit --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--namespace)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--query)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--limit)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__server)
opts="-p -d -v -h --http --mcp --port --host --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--port)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-p)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--host)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
vanta__subcmd__cli__subcmd__status)
opts="-d -v -h --db --verbose --help"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
--db)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
-d)
COMPREPLY=($(compgen -f "${cur}"))
return 0
;;
*)
COMPREPLY=()
;;
esac
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
;;
esac
}
if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then
complete -F _vanta-cli -o nosort -o bashdefault -o default vanta-cli
else
complete -F _vanta-cli -o bashdefault -o default vanta-cli
fi