mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
completions: remove last unnamespaced symbols.
https://bugzilla.gnome.org/show_bug.cgi?id=744877
This commit is contained in:
parent
92d204be44
commit
c6e3c859a4
3 changed files with 24 additions and 24 deletions
|
@ -18,18 +18,18 @@
|
||||||
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
# Boston, MA 02110-1301, USA.
|
# Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
|
_GST_HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
|
||||||
|
|
||||||
if [[ ! -d "$HELPERDIR" ]]; then
|
if [[ ! -d "$_GST_HELPERDIR" ]]; then
|
||||||
HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
|
_GST_HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
|
||||||
else
|
else
|
||||||
HELPERDIR=`cd "$HELPERDIR"; pwd`
|
_GST_HELPERDIR=`cd "$_GST_HELPERDIR"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Common definitions
|
# Common definitions
|
||||||
. "$HELPERDIR"/gst
|
. "$_GST_HELPERDIR"/gst
|
||||||
|
|
||||||
HELPER="$HELPERDIR/gst-completion-helper-1.0"
|
_GST_HELPER="$_GST_HELPERDIR/gst-completion-helper-1.0"
|
||||||
|
|
||||||
_gst_inspect_all_arguments ()
|
_gst_inspect_all_arguments ()
|
||||||
{
|
{
|
||||||
|
@ -38,10 +38,10 @@ _gst_inspect_all_arguments ()
|
||||||
|
|
||||||
_gst_inspect_all_elements ()
|
_gst_inspect_all_elements ()
|
||||||
{
|
{
|
||||||
COMPREPLY=( $(compgen -W "$($HELPER -l)" -- $cur) )
|
COMPREPLY=( $(compgen -W "$($_GST_HELPER -l)" -- $cur) )
|
||||||
}
|
}
|
||||||
|
|
||||||
_gstinspect___atleast_version () { _mandatory__argument; }
|
_gstinspect___atleast_version () { _gst_mandatory_argument; }
|
||||||
|
|
||||||
_gstinspect___exists ()
|
_gstinspect___exists ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,18 +18,18 @@
|
||||||
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
# Boston, MA 02110-1301, USA.
|
# Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
|
_GST_HELPERDIR="${BASH_SOURCE[0]%/*}/../helpers"
|
||||||
|
|
||||||
if [[ ! -d "$HELPERDIR" ]]; then
|
if [[ ! -d "$_GST_HELPERDIR" ]]; then
|
||||||
HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
|
_GST_HELPERDIR="$(pkg-config --variable=helpersdir gstreamer-1.0)"
|
||||||
else
|
else
|
||||||
HELPERDIR=`cd "$HELPERDIR"; pwd`
|
_GST_HELPERDIR=`cd "$_GST_HELPERDIR"; pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Common definitions
|
# Common definitions
|
||||||
. "$HELPERDIR"/gst
|
. "$_GST_HELPERDIR"/gst
|
||||||
|
|
||||||
HELPER="$HELPERDIR/gst-completion-helper-1.0"
|
_GST_HELPER="$_GST_HELPERDIR/gst-completion-helper-1.0"
|
||||||
|
|
||||||
_gst_launch_all_arguments ()
|
_gst_launch_all_arguments ()
|
||||||
{
|
{
|
||||||
|
@ -38,20 +38,20 @@ _gst_launch_all_arguments ()
|
||||||
|
|
||||||
_gst_complete_compatible_elements ()
|
_gst_complete_compatible_elements ()
|
||||||
{
|
{
|
||||||
COMPREPLY=( $(compgen -W "$($HELPER --compatible-with $previous_element)" -- $cur) )
|
COMPREPLY=( $(compgen -W "$($_GST_HELPER --compatible-with $previous_element)" -- $cur) )
|
||||||
}
|
}
|
||||||
|
|
||||||
_gst_complete_all_elements ()
|
_gst_complete_all_elements ()
|
||||||
{
|
{
|
||||||
COMPREPLY=( $(compgen -W "$($HELPER -l)" -- $cur) )
|
COMPREPLY=( $(compgen -W "$($_GST_HELPER -l)" -- $cur) )
|
||||||
}
|
}
|
||||||
|
|
||||||
_gst_complete_element_properties ()
|
_gst_complete_element_properties ()
|
||||||
{
|
{
|
||||||
COMPREPLY=( $(compgen -W "$($HELPER --element-properties $previous_element)" -- $cur) )
|
COMPREPLY=( $(compgen -W "$($_GST_HELPER --element-properties $previous_element)" -- $cur) )
|
||||||
}
|
}
|
||||||
|
|
||||||
_gstlaunch___exclude_ () { _mandatory__argument; }
|
_gstlaunch___exclude_ () { _gst_mandatory_argument; }
|
||||||
|
|
||||||
_gst_launch_main ()
|
_gst_launch_main ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,13 +18,13 @@
|
||||||
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
# Boston, MA 02110-1301, USA.
|
# Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
___gst_debug_level () { _mandatory__argument; }
|
___gst_debug_level () { _gst_mandatory_argument; }
|
||||||
___gst_debug () { _mandatory__argument; }
|
___gst_debug () { _gst_mandatory_argument; }
|
||||||
___gst_debug_color_mode () { _mandatory__argument; }
|
___gst_debug_color_mode () { _gst_mandatory_argument; }
|
||||||
___gst_plugin_path () { _mandatory__argument; }
|
___gst_plugin_path () { _gst_mandatory_argument; }
|
||||||
___gst_plugin_load () { _mandatory__argument; }
|
___gst_plugin_load () { _gst_mandatory_argument; }
|
||||||
|
|
||||||
_mandatory__argument ()
|
_gst_mandatory_argument ()
|
||||||
{
|
{
|
||||||
if [[ "$prev" != "$command" ]]
|
if [[ "$prev" != "$command" ]]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue