Debian Codegraph @

src/util/bash-completion/mdb-tables

raw
1 #-*- mode: shell-script;-*-
2 _mdb_tables()
3 {
4 local cur prev words cword split
5 _init_completion -s || return
6
7 if [[ "$prev" == -@(d|-delimiter) ]]; then
8 return 0
9 elif [[ "$prev" == -@(t|-type) ]]; then
10 COMPREPLY=( $( compgen -W 'form table macro systable report query linkedtable module relationship dbprop any all' -- "$cur" ) )
11 return 0
12 fi
13
14 $split && return
15
16 if [[ "$cur" == -* ]]; then
17 COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
18 [[ $COMPREPLY == *= ]] && compopt -o nospace
19 else
20 _filedir '@(mdb|mdw|accdb)'
21 fi
22 return 0
23 } &&
24 complete -F _mdb_tables mdb-tables