From: Serge Rehbinder Date: Thu, 29 Sep 2016 10:00:47 +0000 (+0200) Subject: add the completion for the base command X-Git-Tag: 5.0.0a1~92 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5398c1020a6e1738ca88771e12c861fedeb16a1f;p=tools%2Fsat.git add the completion for the base command --- diff --git a/complete_sat.sh b/complete_sat.sh index db4aefb..c17a4cb 100755 --- a/complete_sat.sh +++ b/complete_sat.sh @@ -55,6 +55,9 @@ _show_applications() template) opts2=$(echo --name --template --target --param --info $opts2) ;; + base) + opts2=$(echo --set $opts2) + ;; esac COMPREPLY=( $(compgen -W "${opts2}" -- ${cur}) ) @@ -101,7 +104,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 application template --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 base --help" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 fi @@ -255,6 +258,11 @@ _salomeTools_complete() COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 ;; + base) + opts="--set" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; *) return 0 ;; esac