bash-completion.sh
branchv_0
changeset 2 1a0fbd17db13
parent 0 7ef5ce9477c8
child 3 62ced7c41c67
equal deleted inserted replaced
1:cb9577442d3b 2:1a0fbd17db13
    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 	else
    38 	else
    40 		OPTIONS=(
    39 		OPTIONS=(
    41 			"--relation"
    40 			"--relation"
    42 			"--unlink-on-close"
    41 			"--stream"
    43 			"--queue"
       
    44 		)
    42 		)
    45 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    43 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    46 	fi
    44 	fi
    47 }
    45 }
    48 
    46