From: Serge Rehbinder Date: Fri, 16 Sep 2016 08:13:15 +0000 (+0200) Subject: add completion for application and template commands X-Git-Tag: 5.0.0a1~121 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8fa395ef4a70ed3466a84eb3789cd636e9d18523;p=tools%2Fsat.git add completion for application and template commands --- diff --git a/complete_sat.sh b/complete_sat.sh index 56e5f7a..db4aefb 100755 --- a/complete_sat.sh +++ b/complete_sat.sh @@ -52,6 +52,9 @@ _show_applications() find_duplicates) opts2=$(echo --path --exclude-file --exclude-extension --exclude-path $opts2) ;; + template) + opts2=$(echo --name --template --target --param --info $opts2) + ;; esac COMPREPLY=( $(compgen -W "${opts2}" -- ${cur}) ) @@ -98,7 +101,7 @@ _salomeTools_complete() # first argument => show available commands if [[ ${argc} == 1 ]] then - opts="config log testcommand source patch prepare environ clean configure make makeinstall compile launcher run jobs job shell test package generate find_duplicates --help" + opts="config log testcommand source patch prepare environ clean configure make makeinstall compile launcher run jobs job shell test package generate find_duplicates application template --help" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 fi @@ -242,6 +245,16 @@ _salomeTools_complete() COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; + application) + opts="--name --catalog --target --gencat --module" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + template) + opts="--name --template --target --param --info" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; *) return 0 ;; esac