From d15bd29a9d411dedc0a0682ec54b55e079d4f00f Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Tue, 13 Sep 2022 00:24:31 +0200 Subject: pkgrepo: add subcommand to open the packaging repository's website This can be quite handy if a packager quickly wants to check the GitLab page for merge requests or but reports. Quickly calling a cli command inside the current packaging clone or with the pkgname provided will open the remote location inside the browser. Signed-off-by: Levente Polyak --- contrib/completion/zsh/_devtools.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'contrib/completion/zsh') diff --git a/contrib/completion/zsh/_devtools.in b/contrib/completion/zsh/_devtools.in index 06e05e1..d30648a 100644 --- a/contrib/completion/zsh/_devtools.in +++ b/contrib/completion/zsh/_devtools.in @@ -19,6 +19,7 @@ _pkgrepo_cmds=( "pkgrepo command" "clone[Clone a package repository]" "configure[Configure a clone according to distro specs]" + "web[Open the packaging repository's website]" ) _pkgrepo_clone_args=( @@ -35,6 +36,11 @@ _pkgrepo_configure_args=( '*:git_dir:_files -/' ) +_pkgrepo_web_args=( + '(-h --help)'{-h,--help}'[Display usage]' + '*:git_dir:_files -/' +) + _arch_nspawn_args=( '-C[Location of a pacman config file]:pacman_config:_files -g "*.conf(.)"' '-M[Location of a makepkg config file]:makepkg_config:_files -g "*.conf(.)"' -- cgit v1.2.3-70-g09d2