circleci-cli: update to 0.1.15195.

This update provides shell completion for Bash and ZSH.

Commit information has been removed for ease of maintenance.

Closes: #29791 [via git-merge-pr]
This commit is contained in:
Gabriel Sanches 2021-03-27 18:28:06 -03:00 committed by Érico Nogueira
parent 3f237b9526
commit c680afe7d2

View file

@ -1,17 +1,21 @@
# Template file for 'circleci-cli' # Template file for 'circleci-cli'
pkgname=circleci-cli pkgname=circleci-cli
version=0.1.15108 version=0.1.15195
revision=1 revision=1
build_style=go build_style=go
build_helper=qemu
go_import_path=github.com/CircleCI-Public/${pkgname} go_import_path=github.com/CircleCI-Public/${pkgname}
go_ldflags="-s -w -X github.com/CircleCI-Public/${pkgname}/version.Version=${version} -X github.com/CircleCI-Public/${pkgname}/version.Commit=cf6a918 -X github.com/CircleCI-Public/${pkgname}/version.packageManager=xbps" go_ldflags="-s -w
-X github.com/CircleCI-Public/${pkgname}/version.Version=${version}
-X github.com/CircleCI-Public/${pkgname}/version.packageManager=xbps"
hostmakedepends="packr2" hostmakedepends="packr2"
short_desc="Use CircleCI from the command line" short_desc="Use CircleCI from the command line"
maintainer="Gabriel Sanches <gabriel@gsr.dev>" maintainer="Gabriel Sanches <gabriel@gsr.dev>"
license="MIT" license="MIT"
homepage="https://circleci-public.github.io/circleci-cli/" homepage="https://circleci-public.github.io/circleci-cli/"
distfiles="https://github.com/CircleCI-Public/${pkgname}/archive/v${version}.tar.gz" distfiles="https://github.com/CircleCI-Public/${pkgname}/archive/v${version}.tar.gz"
checksum=930bc37c181389cebbbcf9a2b836eb55f8c7ebcb9e853666ce5f4213b084a551 checksum=c9f7bb5a81a173b4c87c9343c7bf12412f9e45ffa742478ffde74a9b10e879da
_completions="bash zsh"
pre_build() { pre_build() {
packr2 packr2
@ -19,6 +23,12 @@ pre_build() {
post_build() { post_build() {
packr2 clean packr2 clean
# Generate completion for shells.
cli=$(find $GOPATH/bin -name $pkgname)
for shell in $_completions; do
vtargetrun $cli completion $shell > ${pkgname}.${shell}
done
} }
post_install() { post_install() {
@ -26,4 +36,8 @@ post_install() {
# Rename the binary according to CircleCI's own releases. # Rename the binary according to CircleCI's own releases.
mv ${DESTDIR}/usr/bin/circleci{-cli,} mv ${DESTDIR}/usr/bin/circleci{-cli,}
for shell in $_completions; do
vcompletion ${pkgname}.${shell} $shell circleci
done
} }