bash-completion.sh
branchv_0
changeset 2 0799eaf338b9
parent 0 7fdf75648c0a
child 3 610783d70ae9
equal deleted inserted replaced
1:4993a084b8ba 2:0799eaf338b9
    32 		"true"
    32 		"true"
    33 		"false"
    33 		"false"
    34 	)
    34 	)
    35 
    35 
    36 	if   [[ "$w1" == "--relation"                      && "x$w0" == "x" ]];    then COMPREPLY=("''")
    36 	if   [[ "$w1" == "--relation"                      && "x$w0" == "x" ]];    then COMPREPLY=("''")
    37 	elif [[ "$w1" == "--unlink-on-close"                                ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    37 	elif [[ "$w1" == "--stream"                        && "x$w0" == "x" ]];    then COMPREPLY=("''")
    38 	elif [[ "$w1" == "--queue"                         && "x$w0" == "x" ]];    then COMPREPLY=("''")
       
    39 	elif [[ "$w1" == "--message-count"                 && "x$w0" == "x" ]];    then COMPREPLY=("1")
    38 	elif [[ "$w1" == "--message-count"                 && "x$w0" == "x" ]];    then COMPREPLY=("1")
    40 	else
    39 	else
    41 		OPTIONS=(
    40 		OPTIONS=(
    42 			"--relation"
    41 			"--relation"
    43 			"--unlink-on-close"
    42 			"--stream"
    44 			"--queue"
       
    45 			"--message-count"
    43 			"--message-count"
    46 		)
    44 		)
    47 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    45 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    48 	fi
    46 	fi
    49 }
    47 }