summaryrefslogtreecommitdiff
path: root/src/lib/version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/version.sh')
-rw-r--r--src/lib/version.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/version.sh b/src/lib/version.sh
index 826b306..14cd810 100644
--- a/src/lib/version.sh
+++ b/src/lib/version.sh
@@ -18,7 +18,8 @@ pkgctl_version_usage() {
Package version related commands.
COMMANDS
- check Check if there is a newer version availble
+ check Check if there is a newer version availble
+ upgrade Upgrade the PKGBUILD according to the latest available upstream version
OPTIONS
-h, --help Show this help text
@@ -48,6 +49,14 @@ pkgctl_version() {
pkgctl_version_check "$@"
exit 0
;;
+ upgrade)
+ _DEVTOOLS_COMMAND+=" $1"
+ shift
+ # shellcheck source=src/lib/version/upgrade.sh
+ source "${_DEVTOOLS_LIBRARY_DIR}"/lib/version/upgrade.sh
+ pkgctl_version_upgrade "$@"
+ exit 0
+ ;;
*)
die "invalid argument: %s" "$1"
;;