COMPREPLY=( $(compgen -W "${opts2}" -- ${cur}) )
}
-_show_modules()
+_show_products()
{
if [[ $appli != $prev ]]
then
- opts=$(for x in `$SAT_PATH/sat -s config $appli -nv APPLICATION.modules`
+ opts=$(for x in `$SAT_PATH/sat -s config $appli -nv APPLICATION.products`
do echo ${x}; done)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
# first argument => show available commands
if [[ ${argc} == 1 ]]
then
- opts="config log testcommand source patch --help"
+ opts="config log testcommand source patch prepare environ clean configure make makeinstall compile --help"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
fi
return 0
fi
- # show list of modules
- if [[ ${prev} == "--module" || ${prev} == "-m" ]]
+ # show list of products
+ if [[ ${prev} == "--product" || ${prev} == "-p" ]]
then
appli="${COMP_WORDS[2]}"
if [[ ${command} != "source" ]]
then
- opts=$(for x in `$SAT_PATH/sat config $appli -nv APPLICATION.modules`
+ opts=$(for x in `$SAT_PATH/sat config $appli -nv APPLICATION.products`
do echo ${x}; done)
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
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="--modules --no_sample --force"
+ opts="--products"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ patch)
+ opts="--products"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ prepare)
+ 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
;;
}
-# activation de l'auto-completion pour la commande sat
+# activation of auto-completion for the sat command
complete -F _salomeTools_complete sat
complete -F _salomeTools_complete ./sat