bash-completion.sh
branchv_0
changeset 15 463ce61415f1
parent 14 cde9bb07ea0a
child 16 79520ded76f0
equal deleted inserted replaced
14:cde9bb07ea0a 15:463ce61415f1
    46 	elif [[ "$w1" == "--disconnect-ports"                              ]];    then COMPREPLY=($(compgen -W "$(_relpipe_in_jack_completion_ports output)" -- "$w0"))
    46 	elif [[ "$w1" == "--disconnect-ports"                              ]];    then COMPREPLY=($(compgen -W "$(_relpipe_in_jack_completion_ports output)" -- "$w0"))
    47 	elif [[ "$w2" == "--disconnect-ports"                              ]];    then COMPREPLY=($(compgen -W "$(_relpipe_in_jack_completion_ports input)" -- "$w0"))
    47 	elif [[ "$w2" == "--disconnect-ports"                              ]];    then COMPREPLY=($(compgen -W "$(_relpipe_in_jack_completion_ports input)" -- "$w0"))
    48 	elif [[ "$w1" == "--required-connections"         && "x$w0" == "x" ]];    then COMPREPLY=("0")
    48 	elif [[ "$w1" == "--required-connections"         && "x$w0" == "x" ]];    then COMPREPLY=("0")
    49 	elif [[ "$w1" == "--list-ports"                                    ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    49 	elif [[ "$w1" == "--list-ports"                                    ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    50 	elif [[ "$w1" == "--list-connections"                              ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    50 	elif [[ "$w1" == "--list-connections"                              ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
    51 	elif [[ "$w1" == "--list-properties"                               ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    51 	elif [[ "$w1" == "--list-midi-messages"                            ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    52 	elif [[ "$w1" == "--list-midi-messages"                            ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    52 	else
    53 	else
    53 		OPTIONS=(
    54 		OPTIONS=(
    54 			"--client"
    55 			"--client"
    55 			"--port"
    56 			"--port"
    57 			"--connect-ports"
    58 			"--connect-ports"
    58 			"--disconnect-ports"
    59 			"--disconnect-ports"
    59 			"--required-connections"
    60 			"--required-connections"
    60 			"--list-ports"
    61 			"--list-ports"
    61 			"--list-connections"
    62 			"--list-connections"
       
    63 			"--list-properties"
    62 			"--list-midi-messages"
    64 			"--list-midi-messages"
    63 		)
    65 		)
    64 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    66 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    65 	fi
    67 	fi
    66 }
    68 }