View | Details | Raw Unified | Return to bug 14714
Collapse All | Expand All

(-)a/debian/koha-common.bash-completion (-1 / +18 lines)
Lines 43-48 _build_substract_instances() Link Here
43
    echo "$substract"
43
    echo "$substract"
44
}
44
}
45
45
46
_koha_single_instance()
47
{
48
    local filter=$1
49
50
    cur=${COMP_WORDS[COMP_CWORD]}
51
    prev=${COMP_WORDS[COMP_CWORD-1]}
52
    if [ $COMP_CWORD -eq 1 ]; then
53
        COMPREPLY=( $( compgen -W "$(koha-list $filter)" $cur ) )
54
    else
55
        COMPREPLY=()
56
    fi
57
58
    return 0
59
}
60
46
_koha_list_cmd()
61
_koha_list_cmd()
47
{
62
{
48
    local filter=$1
63
    local filter=$1
Lines 120-125 complete -F _koha_enabled_instances koha-start-zebra Link Here
120
complete -F _koha_enabled_instances koha-restart-zebra
135
complete -F _koha_enabled_instances koha-restart-zebra
121
complete -F _koha_enabled_instances koha-stop-zebra
136
complete -F _koha_enabled_instances koha-stop-zebra
122
137
138
# koha-mysql autocompletes with a single instance name
139
complete -F _koha_single_instance koha-mysql
140
123
_koha_list()
141
_koha_list()
124
{
142
{
125
    local cur opts substract
143
    local cur opts substract
126
- 

Return to bug 14714