summaryrefslogtreecommitdiff
path: root/completions/_mock
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
commit6d88f1055806932d9291f96847d2b691cccda2cd (patch)
tree0ff79eedaa8a239331256048981deedbd0721965 /completions/_mock
parent059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff)
downloadbash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/_mock')
-rw-r--r--completions/_mock18
1 files changed, 9 insertions, 9 deletions
diff --git a/completions/_mock b/completions/_mock
index c616aed0..9649d306 100644
--- a/completions/_mock
+++ b/completions/_mock
@@ -24,20 +24,20 @@ _mock()
case $prev in
-h|--help|--copyin|--copyout|--arch|-D|--define|--with|--without|\
--uniqueext|--rpmbuild_timeout|--sources|--cwd)
- return 0
+ return
;;
-r|--root)
COMPREPLY=( $( compgen -W "$( command ls $cfgdir )" -- "$cur" ) )
COMPREPLY=( ${COMPREPLY[@]/%.cfg/} )
- return 0
+ return
;;
--configdir|--resultdir)
_filedir -d
- return 0
+ return
;;
--spec)
_filedir spec
- return 0
+ return
;;
--target)
# Yep, compatible archs, not compatible build archs
@@ -45,17 +45,17 @@ _mock()
# This would actually depend on what the target root
# can be used to build for...
COMPREPLY=( $( compgen -W "$( command rpm --showrc | \
- sed -ne 's/^\s*compatible\s\s*archs\s*:\s*\(.*\)/\1/i p' )" \
+ command sed -ne 's/^\s*compatible\s\s*archs\s*:\s*\(.*\)/\1/i p' )" \
-- "$cur" ) )
- return 0
+ return
;;
--enable-plugin|--disable-plugin)
COMPREPLY=( $( compgen -W "$plugins" -- "$cur" ) )
- return 0
+ return
;;
esac
- $split && return 0
+ $split && return
if [[ "$cur" == -* ]] ; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
@@ -66,4 +66,4 @@ _mock()
} &&
complete -F _mock mock
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh