aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@gmail.com>2017-09-10 21:54:14 +0200
committerGuillaume Rousse <guillomovitch@gmail.com>2017-09-10 22:00:18 +0200
commit13e804ec38fdbd206b674305d016fa7de6cc56c5 (patch)
tree4f5cbabac565c5cef08e261975411ec94eacebbd /bash-completion
parent885943d96a3deec9c7d4053b59e31638b76f17f8 (diff)
downloadmgarepo-13e804ec38fdbd206b674305d016fa7de6cc56c5.tar
mgarepo-13e804ec38fdbd206b674305d016fa7de6cc56c5.tar.gz
mgarepo-13e804ec38fdbd206b674305d016fa7de6cc56c5.tar.bz2
mgarepo-13e804ec38fdbd206b674305d016fa7de6cc56c5.tar.xz
mgarepo-13e804ec38fdbd206b674305d016fa7de6cc56c5.zip
add import, checkout and commit aliases
Diffstat (limited to 'bash-completion')
-rwxr-xr-xbash-completion/mgarepo9
1 files changed, 5 insertions, 4 deletions
diff --git a/bash-completion/mgarepo b/bash-completion/mgarepo
index c6a335c..7689d2b 100755
--- a/bash-completion/mgarepo
+++ b/bash-completion/mgarepo
@@ -11,7 +11,8 @@ _mgarepo_actions()
{
COMPREPLY=( $( compgen -W 'co ci sync \
submit putsrpm getspec rpmlog getsrpm maintdb create changed \
- authoremail switch markrelease upload del up obsolete' -- $cur ) )
+ authoremail switch markrelease upload del up obsolete checkout \
+ commit import' -- $cur ) )
}
_mgarepo()
@@ -43,11 +44,11 @@ _mgarepo()
if [[ "$cur" == -* ]]; then
# possible options for the command
case $command in
- co)
+ co|checkout)
options="-r --distribution \
--branch --spec --no-mirror"
;;
- ci)
+ ci|commit)
options="-m -F"
;;
sync)
@@ -56,7 +57,7 @@ _mgarepo()
submit)
options="-t -l -r -s -i -a --distro --define"
;;
- putsrpm)
+ putsrpm|import)
options="-l -t -b -d -c -s -n"
;;
getsrpm)