Salome HOME
add the completion for the base command
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Thu, 29 Sep 2016 10:00:47 +0000 (12:00 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Thu, 29 Sep 2016 10:00:47 +0000 (12:00 +0200)
complete_sat.sh

index db4aefb90ac619c9660b5c28fd1ed3e76b2d0635..c17a4cb5c279c3725fb0fbc1207d7b58c0d9484c 100755 (executable)
@@ -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