]> SALOME platform Git repositories - tools/sat.git/blobdiff - complete_sat.sh
Salome HOME
add the completion for the base command
[tools/sat.git] / complete_sat.sh
index 56e5f7a7f87016852689c834952ba450002f675d..c17a4cb5c279c3725fb0fbc1207d7b58c0d9484c 100755 (executable)
@@ -52,6 +52,12 @@ _show_applications()
         find_duplicates)
             opts2=$(echo --path --exclude-file --exclude-extension --exclude-path $opts2)
             ;;
+        template)
+            opts2=$(echo --name --template --target --param --info $opts2)
+            ;;
+        base)
+            opts2=$(echo --set $opts2)
+            ;;
     esac
 
     COMPREPLY=( $(compgen -W "${opts2}" -- ${cur}) )
@@ -98,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 --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
@@ -242,6 +248,21 @@ _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
+            ;;
+        base)
+            opts="--set"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
         *) return 0 ;;
     esac