Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib/completion
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2024-04-27 01:50:57 +0200
committerLevente Polyak <anthraxx@archlinux.org>2024-04-28 15:55:53 +0200
commit1d433f600e6eecfe685650a06e58d1a8edae9b5d (patch)
tree8d744a164b64cc28dc3ee640137d357916674d5e /contrib/completion
parent7b553afcb25286d04dcb4cbf12e18745e8b0139a (diff)
feat(db): confirm list of all packages that will be removed
Sometimes it isn't obvious which set of packages are removed from a split package when the pkgbase matches also a subset of a pkgbase. This can happen for example with bootstrapping packages, when the intention is to just remove a partial part of the bootstrap pkgbase. To make the intention more explicit, list all to be removed packages and await for confirmation. Component: pkgctl db remove Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
Diffstat (limited to 'contrib/completion')
-rw-r--r--contrib/completion/bash/devtools.in1
-rw-r--r--contrib/completion/zsh/_devtools.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/contrib/completion/bash/devtools.in b/contrib/completion/bash/devtools.in
index ec45b62..5125ceb 100644
--- a/contrib/completion/bash/devtools.in
+++ b/contrib/completion/bash/devtools.in
@@ -241,6 +241,7 @@ _pkgctl_db_move_opts() {
_pkgctl_db_remove_args=(
--partial
+ --noconfirm
-a --arch
-h --help
)
diff --git a/contrib/completion/zsh/_devtools.in b/contrib/completion/zsh/_devtools.in
index 6dc0340..48ff373 100644
--- a/contrib/completion/zsh/_devtools.in
+++ b/contrib/completion/zsh/_devtools.in
@@ -79,6 +79,7 @@ _pkgctl_db_move_args=(
_pkgctl_db_remove_args=(
'--partial[Remove only partial pkgnames from a split package]'
+ '--noconfirm[Bypass any confirmation messages, should only be used with caution]'
'(-a --arch)'{-a,--arch}"[Override the architecture (disables auto-detection)]:arch:($DEVTOOLS_VALID_BINARY_ARCHES[*])"
'(-h --help)'{-h,--help}'[Display usage]'
"1:repo:($DEVTOOLS_VALID_REPOS[*])"