From 13e804ec38fdbd206b674305d016fa7de6cc56c5 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Sun, 10 Sep 2017 21:54:14 +0200 Subject: add import, checkout and commit aliases --- bash-completion/mgarepo | 9 +++++---- 1 file 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) -- cgit v1.2.1