Salome HOME
Add completion for the package command
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Fri, 2 Sep 2016 10:01:33 +0000 (12:01 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Fri, 2 Sep 2016 10:01:33 +0000 (12:01 +0200)
commands/package.py
complete_sat.sh

index a04016273639a8b43de57be163e2b626205c6a79..582dd0cf43ca80b32fc49bc91c50fcb8cacb98cd 100644 (file)
@@ -79,13 +79,11 @@ project_file_paths : [$VARS.salometoolsway + $VARS.sep + \"..\" + $VARS.sep"""
 parser = src.options.Options()
 parser.add_option('b', 'binaries', 'boolean', 'binaries',
     _('Produce a binary package.'), False)
-parser.add_option('f', 'force_creation', 'boolean', 'force_creation',
-    _('Create the archive even if there are missing products.'), False)
 parser.add_option('s', 'sources', 'boolean', 'sources',
     _('Produce a compilable archive of the sources of the application.'), False)
 parser.add_option('p', 'project', 'string', 'project',
     _('Produce an archive that contains a project.'), "")
-parser.add_option('', 'sat', 'boolean', 'sat',
+parser.add_option('', 'salometools', 'boolean', 'sat',
     _('Produce an archive that contains salomeTools.'), False)
 parser.add_option('n', 'name', 'string', 'name',
     _('The name or full path of the archive.'), None)
index 0b4c71bf7b3dc5e161fb597f4e6b6fc4b9b19cdb..3c3ee31763fd180bd5ecfe4ff2bf48ed04f0806c 100755 (executable)
@@ -46,6 +46,9 @@ _show_applications()
         test)
             opts2=$(echo --base --display --grid --launcher --session $opts2)
             ;;
+        package)
+            opts2=$(echo --name --project --salometools $opts2)
+            ;;
     esac
 
     COMPREPLY=( $(compgen -W "${opts2}" -- ${cur}) )
@@ -92,7 +95,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 --help"
+        opts="config log testcommand source patch prepare environ clean configure make makeinstall compile launcher run jobs job shell test package --help"
         COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
         return 0
     fi
@@ -221,6 +224,11 @@ _salomeTools_complete()
             COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
             return 0
             ;;
+        package)
+            opts="--name --binaries --sources --project --salometools --with_vcs"
+            COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+            return 0
+            ;;
         *) return 0 ;;
     esac