Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Heusel <christian@heusel.eu>2024-01-05 19:10:38 +0100
committerChristian Heusel <christian@heusel.eu>2024-01-21 23:28:29 +0100
commit6054c869e1b9b853aa7408261e477dcb187ff498 (patch)
treeefe2d7142005274baef7f767239f5e04097eeba6 /contrib
parent313c5b4d32291e618cc136035f5e056581aec416 (diff)
feat(upgrade): introduce the version upgrade subcommand
This subcommand applies the detected upstream version upgrades to a PKGBUILD. Component: pkgctl version upgrade Co-authored-by: Levente Polyak <anthraxx@archlinux.org> Signed-off-by: Christian Heusel <christian@heusel.eu>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/bash/devtools.in7
-rw-r--r--contrib/completion/zsh/_devtools.in6
2 files changed, 13 insertions, 0 deletions
diff --git a/contrib/completion/bash/devtools.in b/contrib/completion/bash/devtools.in
index f1084ab..101bd78 100644
--- a/contrib/completion/bash/devtools.in
+++ b/contrib/completion/bash/devtools.in
@@ -339,6 +339,7 @@ _pkgctl_repo_switch_opts() {
_pkgctl_version_cmds=(
check
+ upgrade
)
_pkgctl_version_check_args=(
@@ -347,6 +348,12 @@ _pkgctl_version_check_args=(
_pkgctl_version_check_opts() { _filedir -d; }
+_pkgctl_version_upgrade_args=(
+ -h --help
+)
+
+_pkgctl_version_upgrade_opts() { _filedir -d; }
+
_pkgctl_repo_web_args=(
--print
-h --help
diff --git a/contrib/completion/zsh/_devtools.in b/contrib/completion/zsh/_devtools.in
index 575c327..38bf582 100644
--- a/contrib/completion/zsh/_devtools.in
+++ b/contrib/completion/zsh/_devtools.in
@@ -288,6 +288,7 @@ _pkgctl_args=(
_pkgctl_version_cmds=(
"pkgctl version command"
"check[Check if there is an new upstream version available]"
+ "upgrade[Upgrade the PKGBUILD according to the latest available upstream version]"
)
_pkgctl_version_check_args=(
@@ -295,6 +296,11 @@ _pkgctl_version_check_args=(
'*:git_dir:_files -/'
)
+_pkgctl_version_upgrade_args=(
+ '(-h --help)'{-h,--help}'[Display usage]'
+ '*:git_dir:_files -/'
+)
+
_pkgctl_diff_args=("${_diffpkg_args[@]}")
_handle_subcommands() {