bash-completion.sh
branchv_0
changeset 13 326935d1bfab
parent 12 e8aae4d42c01
child 14 cde9bb07ea0a
equal deleted inserted replaced
12:e8aae4d42c01 13:326935d1bfab
    41 	  if [[ "$w1" == "--client"                       && "x$w0" == "x" ]];    then COMPREPLY=("'relpipe-in-jack'")
    41 	  if [[ "$w1" == "--client"                       && "x$w0" == "x" ]];    then COMPREPLY=("'relpipe-in-jack'")
    42 	elif [[ "$w1" == "--port"                         && "x$w0" == "x" ]];    then COMPREPLY=("'midi-in'")
    42 	elif [[ "$w1" == "--port"                         && "x$w0" == "x" ]];    then COMPREPLY=("'midi-in'")
    43 	elif [[ "$w1" == "--connect-to"                                    ]];    then COMPREPLY=($(compgen -W "$(_relpipe_in_jack_completion_ports)" -- "$w0"))
    43 	elif [[ "$w1" == "--connect-to"                                    ]];    then COMPREPLY=($(compgen -W "$(_relpipe_in_jack_completion_ports)" -- "$w0"))
    44 	elif [[ "$w1" == "--required-connections"         && "x$w0" == "x" ]];    then COMPREPLY=("0")
    44 	elif [[ "$w1" == "--required-connections"         && "x$w0" == "x" ]];    then COMPREPLY=("0")
    45 	elif [[ "$w1" == "--list-ports"                                    ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    45 	elif [[ "$w1" == "--list-ports"                                    ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
       
    46 	elif [[ "$w1" == "--list-connections"                              ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    46 	elif [[ "$w1" == "--list-midi-messages"                            ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    47 	elif [[ "$w1" == "--list-midi-messages"                            ]];    then COMPREPLY=($(compgen -W "${BOOLEAN_VALUES[*]}" -- "$w0"))
    47 	else
    48 	else
    48 		OPTIONS=(
    49 		OPTIONS=(
    49 			"--client"
    50 			"--client"
    50 			"--port"
    51 			"--port"
    51 			"--connect-to"
    52 			"--connect-to"
    52 			"--required-connections"
    53 			"--required-connections"
    53 			"--list-ports"
    54 			"--list-ports"
       
    55 			"--list-connections"
    54 			"--list-midi-messages"
    56 			"--list-midi-messages"
    55 		)
    57 		)
    56 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    58 		COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0"))
    57 	fi
    59 	fi
    58 }
    60 }