# first argument => show available commands
if [[ ${argc} == 1 ]]
then
- opts="config log testcommand source patch prepare --help"
+ opts="config log testcommand source patch prepare environ clean configure make makeinstall compile --help"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
+ clean)
+ opts="--products --sources --build --install --all --sources_without_dev"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
source)
- opts="--product --no_sample --force"
+ opts="--products"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
patch)
- opts="--product --no_sample"
+ opts="--products"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;
prepare)
- opts="--product --no_sample --force --force_patch"
+ opts="--products --force --force_patch"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ environ)
+ opts="--products --shell --prefix --target"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ configure)
+ opts="--products --option"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ make)
+ opts="--products --option"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ makeinstall)
+ opts="--products"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ compile)
+ opts="--products --with_fathers --with_children --clean_all --make_flags --show --stop_first_fail"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
;;