Salome HOME
sat source: add the dir as a possible source for products
[tools/sat.git] / complete_sat.sh
index e2c9bfc66517ab781567635b74604207093e4420..27b3f8af85c438d0b4fec764d0bef6ff34b328b1 100755 (executable)
@@ -32,14 +32,32 @@ _show_applications()
             opts2=$(echo --list --value --edit --info $opts2)
             ;;
         log)
-            opts2=$(echo --clean --full --last --terminal $opts2)
+            opts2=$(echo --clean --full --last --terminal --no_browser $opts2)
             ;;
         jobs)
-            opts2=$(echo --jobs_config --only_jobs --list --no_label --test_connection --publish $opts2)
+            opts2=$(echo --name --only_jobs --list --completion --test_connection --input_boards --publish $opts2)
             ;;
         shell)
             opts2=$(echo --command --sat $opts2)
             ;;
+        job)
+            opts2=$(echo --jobs_config --name $opts2)
+            ;;
+        test)
+            opts2=$(echo --base --display --grid --launcher --session $opts2)
+            ;;
+        package)
+            opts2=$(echo --name --project --salometools $opts2)
+            ;;
+        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}) )
@@ -86,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 shell --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 profile script --help"
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
     fi
@@ -141,12 +159,12 @@ _salomeTools_complete()
             return 0        
             ;;
         log)
-            opts="--clean --last --terminal --last"
+            opts="--clean --last --terminal --last --no_browser"
             COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
             return 0
             ;;
         clean)
-            opts="--products --sources --build --install --all --sources_without_dev"
+            opts="--products --sources --build --install --all --sources_without_dev --properties"
             COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
             return 0
             ;;
@@ -196,12 +214,62 @@ _salomeTools_complete()
             return 0
             ;;
         jobs)
-            opts="--jobs_config --only_jobs --list --no_label --test_connection --publish"
+            opts="--name --only_jobs --list --completion --test_connection --input_boards --publish"
             COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
             return 0
             ;;
         shell)
-            opts="--command --sat"
+            opts="--command"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
+        job)
+            opts="--jobs_config --name"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
+        test)
+            opts="--base --launcher --grid --session --display"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
+        package)
+            opts="--name --binaries --sources --project --salometools --with_vcs --without_commercial"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
+        generate)
+            opts="--products --yacsgen"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
+        find_duplicates)
+            opts="--path --sources --exclude-file --exclude-extension --exclude-path"
+            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
+            ;;
+        profile)
+            opts="--prefix --name --force --no_update --version --slogan"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
+        script)
+            opts="--products --nb_proc"
             COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
             return 0
             ;;