# GStreamer # Copyright (C) 2015 Mathieu Duponchelle # # 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_debug_level () { _mandatory__argument; } ___gst_debug () { _mandatory__argument; } ___gst_debug_color_mode () { _mandatory__argument; } ___gst_plugin_path () { _mandatory__argument; } ___gst_plugin_load () { _mandatory__argument; } _mandatory__argument () { if [[ "$prev" != "$command" ]] then COMPREPLY=( $(compgen -W "$(ges-launch-1.0 --help-all | grep -oh '[[:graph:]]*--[[:graph:]]*' | cut -d'=' -f1)" -- $cur) ) else COMPREPLY=("$cur") fi }