[game-data-packager] 01/01: refresh bash completion
Alexandre Detiste
detiste-guest at moszumanska.debian.org
Tue Oct 20 12:54:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
detiste-guest pushed a commit to branch master
in repository game-data-packager.
commit 99ffbcf95279974057a23c9268a412dea463f850
Author: Alexandre Detiste <alexandre.detiste at gmail.com>
Date: Tue Oct 20 14:53:54 2015 +0200
refresh bash completion
---
data/bash-completion/game-data-packager | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/data/bash-completion/game-data-packager b/data/bash-completion/game-data-packager
index 35d5360..60b0959 100644
--- a/data/bash-completion/game-data-packager
+++ b/data/bash-completion/game-data-packager
@@ -14,6 +14,12 @@ _game_data_packager()
local longopts
longopts='--compress --destination --help --install --no-compress --no-download --no-search --package --save-downloads --install-method --gain-root-command'
COMPREPLY=( $( compgen -W "$longopts" -- $cur ) )
+ elif [ "$prev" == '--install-method' ]
+ then
+ COMPREPLY=( $( compgen -W "dpkg apt gdebi gdebi-gtk gdebi-kde" -- $cur ) )
+ elif [ "$prev" == '--gain-root-command' ]
+ then
+ COMPREPLY=( $( compgen -W "su sudo pkexec" -- $cur ) )
elif [ "$prev" == '--package' ]
then
[ -e /usr/share/games/game-data-packager/bash_completion ] || return
@@ -29,8 +35,12 @@ _game_data_packager()
COMPREPLY=( $( compgen -W "$packages" -- $cur ) )
elif [ $COMP_CWORD -eq 1 ]
then
- local supported
- supported=$(cd /usr/share/games/game-data-packager/; ls -1 *.json 2>/dev/null |cut -d'.' -f1)
+ local line supported
+ while read line
+ do
+ supported="$supported $line"
+ read packages
+ done < /usr/share/games/game-data-packager/bash_completion
COMPREPLY=( $( compgen -W "make-template gog steam $supported" -- $cur ) )
else
COMPREPLY=()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list