Bug 1773205 [wpt PR 34343] - SVG Text NG: Improve performance on ancestor scaling...
[gecko.git] / python / mach / bash-completion.sh
blob13935cf88cd25c7526f51c8759372315dd423c7f
1 function _mach()
3 local cur targets
4 COMPREPLY=()
6 # Calling `mach-completion` with -h/--help would result in the
7 # help text being used as the completion targets.
8 if [[ $COMP_LINE == *"-h"* || $COMP_LINE == *"--help"* ]]; then
9 return 0
12 # Load the list of targets
13 targets=`"${COMP_WORDS[0]}" mach-completion ${COMP_LINE}`
14 cur="${COMP_WORDS[COMP_CWORD]}"
15 COMPREPLY=( $(compgen -W "$targets" -- ${cur}) )
16 return 0
18 complete -o default -F _mach mach