Sha256: a6cd5385d579603c18a79bc363212d442e6ddc39aa8ca5e7fba447df137a6cf4

Contents?: true

Size: 1.79 KB

Versions: 15

Compression:

Stored size: 1.79 KB

Contents

# GStreamer
# Copyright (C) 2015 Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
#
# bash/zsh completion support for common gstreamer options
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301, USA.

_GST_HELPER="/home/vagrant/ruby-gnome2/gstreamer/vendor/local/libexec/gstreamer-1.0/gst-completion-helper"
if [[ ! -x "$_GST_HELPER" ]]
then
        helper="$(pkg-config --variable=helpersdir gstreamer-1.0)/gst-completion-helper"

        if [ -x "$helper" ]
        then
          _GST_HELPER=$helper
        fi
fi

___gst_debug_level () { _gst_mandatory_argument; }
___gst_debug () { _gst_mandatory_argument; }
___gst_debug_color_mode () { _gst_mandatory_argument; }
___gst_plugin_path () { _gst_mandatory_argument; }
___gst_plugin_load () { _gst_mandatory_argument; }

_gst_all_arguments ()
{
	COMPREPLY=( $(compgen -W "$($1 --help-all | grep "^  -" | grep -oh '[[:graph:]]*--[[:graph:]]*\|-[[:alpha:]],' | cut -d'=' -f1 | cut -d',' -f1)" -- $cur) )
}

_gst_mandatory_argument ()
{
	__app=$1
	if [[ -z $__app ]]
	then
		__app=gst-launch-1.0
	fi

	if [[ "$prev" != "$command" ]]
	then
		_gst_all_arguments $__app
	else
		COMPREPLY=("$cur")
	fi
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gstreamer-3.2.9-x64-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.9-x86-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.8-x64-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.8-x86-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.7-x86-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.7-x64-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.6-x64-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.6-x86-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.5-x64-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.5-x86-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.4-x86-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.3-x64-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.3-x86-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.2-x64-mingw32 vendor/local/share/bash-completion/helpers/gst
gstreamer-3.2.2-x86-mingw32 vendor/local/share/bash-completion/helpers/gst