summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2017-04-04 14:55:18 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-04-04 15:30:30 -0400
commit02f9918aca6a6b291c7e1a236d603fd38b1346c9 (patch)
tree520181e34cb3ef3e1460944dd065f39a5d2f4f9c /data
parent1a4c4d3ac042554a08f7878b6f79d05990099c2a (diff)
completion: Update to new gstreamer core helpers
Also fix regressions, and mark lost features and problems with fixmes.
Diffstat (limited to 'data')
-rw-r--r--data/completions/ges-launch-1.017
1 files changed, 10 insertions, 7 deletions
diff --git a/data/completions/ges-launch-1.0 b/data/completions/ges-launch-1.0
index b93f4529..fc1e491c 100644
--- a/data/completions/ges-launch-1.0
+++ b/data/completions/ges-launch-1.0
@@ -21,7 +21,7 @@
HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
if [[ ! -d "$HELPERDIR" ]]; then
- HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
+ HELPERDIR="$(pkg-config --variable=bashhelpersdir gstreamer-1.0)"
else
HELPERDIR=`cd "$HELPERDIR"; pwd`
fi
@@ -29,10 +29,12 @@ fi
# Common definitions
. "$HELPERDIR"/gst
-HELPER="$HELPERDIR/gst-completion-helper-1.0"
+HELPER="$_GST_HELPER"
+GES_COMMAND_LIST="ges-launch-1.0 help | grep '^ +' | cut -d' ' -f3"
_ges___inspect_action_type ()
{
+ # FIXME --inspect-action-type does not exist anymore
COMPREPLY=( $(compgen -W "$(ges-launch-1.0 --inspect-action-type | grep '^[^ ]' | cut -d':' -f2)" -- $cur) )
}
@@ -42,6 +44,7 @@ _ges___track_types ()
}
_ges___set_scenario () {
+ # FIXME Check if gst-validate-1.0 is present
COMPREPLY=( $(compgen -W "*.scenario $(gst-validate-1.0 -l | awk '$0=$2' FS=[ RS=])" -- $cur) )
}
@@ -66,7 +69,7 @@ _ges_clip () {
then
_gst_mandatory_argument
else
- COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(ges-launch-1.0 help all | egrep '^ +')" -- $cur) )
+ COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $($GES_COMMAND_LIST)" -- $cur) )
fi
}
@@ -75,7 +78,7 @@ _ges_test_clip () {
then
_gst_mandatory_argument
else
- COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(ges-launch-1.0 help all | egrep '^ +')" -- $cur) )
+ COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $($GES_COMMAND_LIST)" -- $cur) )
fi
}
@@ -84,16 +87,16 @@ _ges_effect () {
then
_gst_mandatory_argument
else
- COMPREPLY=( $(compgen -W "duration= start= layer= $(ges-launch-1.0 help all | egrep '^ +')" -- $cur) )
+ COMPREPLY=( $(compgen -W "duration= start= layer= $($GES_COMMAND_LIST)" -- $cur) )
fi
}
_ges_list_options () {
- COMPREPLY=( $(compgen -W "$(ges-launch-1.0 --help-all | grep -oh '[[:graph:]]*--[[:graph:]]*' | cut -d'=' -f1)" -- $cur) )
+ _gst_all_arguments ges-launch-1.0
}
_ges_list_commands () {
- COMPREPLY=( $(compgen -W "$(ges-launch-1.0 help all | egrep '^ +')" -- $cur) )
+ COMPREPLY=( $(compgen -W "$($GES_COMMAND_LIST)" -- $cur) )
}
_ges_list_properties () {