From d58383500824beb3aff02f373f2561b853558ed2 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Aug 16 2018 02:42:34 +0000 Subject: Add --shell to bash completion for mockbuild In addition, missing options are also added to zsh completion. Signed-off-by: Chenxiong Qi --- diff --git a/conf/bash-completion/fedpkg.bash b/conf/bash-completion/fedpkg.bash index 8f7ea47..d0bf8fb 100644 --- a/conf/bash-completion/fedpkg.bash +++ b/conf/bash-completion/fedpkg.bash @@ -158,7 +158,8 @@ _fedpkg() options_arch="--arch" ;; mockbuild) - options="--md5 --no-clean --no-cleanup-after --no-clean-all" + options="--md5 --no-clean --no-cleanup-after --no-clean-all --shell" + options_string="--with --without" options_mroot="--root --mock-config" ;; module-build) diff --git a/conf/zsh-completion/_fedpkg b/conf/zsh-completion/_fedpkg index f69b1ac..98d7efb 100644 --- a/conf/zsh-completion/_fedpkg +++ b/conf/zsh-completion/_fedpkg @@ -199,7 +199,13 @@ _fedpkg-mockbuild () { _arguments -C \ '(-h --help)'{-h,--help}'[show help message and exit]' \ '--root[override mock root]:root:_files -/' \ - '--md5[use md5 checksums]' + '--md5[use md5 checksums]' \ + '--no-clean[Do not clean chroot before building package]' \ + '--no-cleanup-after[Do not clean chroot after building (if automatic cleanup is enabled)]' \ + '--no-clean-all[Alias for both --no-clean and --no-cleanup-after]' \ + '--with[Enable configure option (bcond) for the build]' \ + '--without[Disable configure option (bcond) for the build]' \ + '--shell[Run commands interactively within chroot]' } (( $+functions[_fedpkg-mock-config] )) ||