summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2017-04-04 16:20:17 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-04-04 16:22:27 -0400
commit17295138eb55cfa517b607c5ec67db2bb4f70b53 (patch)
tree46eb951cff534541ee7948df80af53dcd27be9b7 /data
parent61b1155c4d4d93df4f2957e8c66dd43565bc5ef5 (diff)
completion: Fix listing commands
Executing a single string does not work in this context. Fixed using a bash function instead.
Diffstat (limited to 'data')
-rw-r--r--data/completions/ges-launch-1.016
1 files changed, 10 insertions, 6 deletions
diff --git a/data/completions/ges-launch-1.0 b/data/completions/ges-launch-1.0
index d5572b2d..90eee61b 100644
--- a/data/completions/ges-launch-1.0
+++ b/data/completions/ges-launch-1.0
@@ -30,7 +30,11 @@ fi
. "$HELPERDIR"/gst
HELPER="$_GST_HELPER"
-GES_COMMAND_LIST="ges-launch-1.0 help | grep '^ +' | cut -d' ' -f3"
+
+_list_commands ()
+{
+ ges-launch-1.0 help | grep '^ +' | cut -d' ' -f3
+}
_ges___inspect_action_type ()
{
@@ -67,7 +71,7 @@ _ges_clip () {
then
_gst_mandatory_argument
else
- COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $($GES_COMMAND_LIST)" -- $cur) )
+ COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(_list_commands)" -- $cur) )
fi
}
@@ -76,7 +80,7 @@ _ges_test_clip () {
then
_gst_mandatory_argument
else
- COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $($GES_COMMAND_LIST)" -- $cur) )
+ COMPREPLY=( $(compgen -W "duration= inpoint= start= layer= $(_list_commands)" -- $cur) )
fi
}
@@ -85,7 +89,7 @@ _ges_effect () {
then
_gst_mandatory_argument
else
- COMPREPLY=( $(compgen -W "duration= start= layer= $($GES_COMMAND_LIST)" -- $cur) )
+ COMPREPLY=( $(compgen -W "duration= start= layer= $(_list_commands)" -- $cur) )
fi
}
@@ -94,7 +98,7 @@ _ges_list_options () {
}
_ges_list_commands () {
- COMPREPLY=( $(compgen -W "$($GES_COMMAND_LIST)" -- $cur) )
+ COMPREPLY=( $(compgen -W "$(_list_commands)" -- $cur) )
}
_ges_list_properties () {
@@ -147,7 +151,7 @@ __ges_main ()
{
local i=1 c=1 command function_exists completion_func commands real_command effect_bin_description
- commands=($(ges-launch-1.0 help all | egrep '^ +'))
+ commands=($(_ges_list_command))
real_command=""
effect_bin_description=""