summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2022-12-17 01:51:15 +0100
committerLevente Polyak <anthraxx@archlinux.org>2023-05-19 22:27:13 +0200
commit5752488ef114513c8f75d753cf91d5b61dfa0660 (patch)
tree53b3fb27b343838efa3bcd70412cedc1c470d957 /contrib
parentb9db6160a2547a57d19308776a25223eb2130b6b (diff)
downloaddevtools-5752488ef114513c8f75d753cf91d5b61dfa0660.tar.xz
release: command to commit, tag and upload build artifacts
This is a smart and more convenient invocation of the classical commitpkg and archrelease with auto-discovery for target repositories and a shorthand option to directly call db-update.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/completion/zsh/_devtools.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/completion/zsh/_devtools.in b/contrib/completion/zsh/_devtools.in
index 62d9fea..2961f6f 100644
--- a/contrib/completion/zsh/_devtools.in
+++ b/contrib/completion/zsh/_devtools.in
@@ -59,6 +59,16 @@ _pkgctl_db_update_args=(
'(-h --help)'{-h,--help}'[Display usage]'
)
+_pkgctl_release_args=(
+ '(-m --message=)'{-m,--message=}"[Use the given <msg> as the commit message]:message:"
+ '(-r --repo=)'{-r,--repo=}"[Specify a target repository (disables auto-detection)]:repo:($_repos[*])"
+ '(-s --staging)'{-s,--staging}'[Release to the staging counterpart of the auto-detected repo]'
+ '(-t --testing)'{-t,--testing}'[Release to the testing counterpart of the auto-detected repo]'
+ '(-u --db-update)'{-u,--db-update}'[Automatically update the pacman database after uploading]'
+ '(-h --help)'{-h,--help}'[Display usage]'
+ '*:git_dir:_files -/'
+)
+
_pkgctl_repo_cmds=(
"pkgctl repo command"
"clone[Clone a package repository]"
@@ -205,6 +215,7 @@ _pkgctl_cmds=(
"auth[Authenticate with services like GitLab]"
"db[Pacman database modification for packge update, move etc]"
"diff[Compare package files using different modes]"
+ "release[Release step to commit, tag and upload build artifacts]"
"repo[Manage Git packaging repositories and their configuration]"
)