completions: port to new base gst script

This commit is contained in:
Mathieu Duponchelle 2015-03-23 12:27:56 +01:00
parent c70f005970
commit 4f3b223f98

View file

@ -64,7 +64,7 @@ _ges___videosink () {
_ges_clip () { _ges_clip () {
if [[ "$prev" == "$command" ]]; if [[ "$prev" == "$command" ]];
then then
_mandatory__argument _gst_mandatory_argument
else else
COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(ges-launch-1.0 help all | egrep '^ [a-zA-Z0-9]')" -- $cur) ) COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(ges-launch-1.0 help all | egrep '^ [a-zA-Z0-9]')" -- $cur) )
fi fi
@ -73,7 +73,7 @@ _ges_clip () {
_ges_effect () { _ges_effect () {
if [[ "$prev" == "$command" ]]; if [[ "$prev" == "$command" ]];
then then
_mandatory__argument _gst_mandatory_argument
else else
COMPREPLY=( $(compgen -W "duration= start= layer= $(ges-launch-1.0 help all | egrep '^ +')" -- $cur) ) COMPREPLY=( $(compgen -W "duration= start= layer= $(ges-launch-1.0 help all | egrep '^ +')" -- $cur) )
fi fi
@ -92,7 +92,7 @@ _ges_list_properties () {
if [[ "$real_command" == "" ]] if [[ "$real_command" == "" ]]
then then
_mandatory__argument _gst_mandatory_argument
elif [[ "$real_command" == "+clip" ]] elif [[ "$real_command" == "+clip" ]]
then then
COMPREPLY=( $(compgen -W "set-alpha set-posx set-posy set-width set-height set-volume set-mute" -- $cur) ) COMPREPLY=( $(compgen -W "set-alpha set-posx set-posy set-width set-height set-volume set-mute" -- $cur) )
@ -109,17 +109,17 @@ _ges_list_properties () {
done done
done done
else else
_mandatory__argument _gst_mandatory_argument
fi fi
} }
_ges___exclude_ () { _mandatory__argument; } _ges___exclude_ () { _gst_mandatory_argument; }
_ges___encoding_profile () { _mandatory__argument; } _ges___encoding_profile () { _gst_mandatory_argument; }
_ges___ges_sample_path () { _mandatory__argument; } _ges___ges_sample_path () { _gst_mandatory_argument; }
_ges___ges_sample_path_recurse () { _mandatory__argument; } _ges___ges_sample_path_recurse () { _gst_mandatory_argument; }
_ges___thumbnail () { _mandatory__argument; } _ges___thumbnail () { _gst_mandatory_argument; }
_ges___repeat () { _mandatory__argument; } _ges___repeat () { _gst_mandatory_argument; }
_ges___save () { _mandatory__argument; } _ges___save () { _gst_mandatory_argument; }
containsElement () { containsElement () {
local e local e
@ -139,7 +139,7 @@ __ges_main ()
effect_bin_description="" effect_bin_description=""
if [[ "$cur" == "=" ]]; then if [[ "$cur" == "=" ]]; then
_mandatory__argument _gst_mandatory_argument
return return
fi fi
@ -179,7 +179,7 @@ __ges_main ()
_ges_list_commands _ges_list_commands
elif [[ "$cur" == "="* ]] elif [[ "$cur" == "="* ]]
then then
_mandatory__argument _gst_mandatory_argument
elif [[ "$cur" == "set-"* ]] elif [[ "$cur" == "set-"* ]]
then then
_ges_list_properties _ges_list_properties