[arch-commits] Commit in argocd-cli/trunk (PKGBUILD argocd.bash argocd.zsh)
Daurnimator
daurnimator at archlinux.org
Sat Nov 14 23:39:16 UTC 2020
Date: Saturday, November 14, 2020 @ 23:39:15
Author: daurnimator
Revision: 754264
Remove indirection in shell completion files
Modified:
argocd-cli/trunk/PKGBUILD
Deleted:
argocd-cli/trunk/argocd.bash
argocd-cli/trunk/argocd.zsh
-------------+
PKGBUILD | 16 +++++++---------
argocd.bash | 1 -
argocd.zsh | 3 ---
3 files changed, 7 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-14 23:37:12 UTC (rev 754263)
+++ PKGBUILD 2020-11-14 23:39:15 UTC (rev 754264)
@@ -9,12 +9,8 @@
license=('Apache')
makedepends=('go')
depends=('glibc')
-source=("argo-cd-${pkgver}.tar.gz::https://github.com/argoproj/argo-cd/archive/v${pkgver}.tar.gz"
- "argocd.bash"
- "argocd.zsh")
-sha512sums=('2d3fe2f90188192769d4f6bdf28e36b6c7dfa98b21e2cd88c56e1a97e3ed4bcacc23b9e09a48a17872113571833fcaefa4a4f71726cf9bff71c9aa816045a05f'
- '5e751e78965b00f767aff90df435aba57aefa6f6d599807ddfda243ff95e0366636da2b2b5af2e9b389ab9efec23ee049f27e6a7defb8d3cb308693495b8a762'
- '28568c83720793cdb5e77ec9c4aa5f1f4757ed665e84d807b8a4fe8377497f462fd33faf4bf076cf0a910e6b4d756ab31d66b1cf5643a3744bd0fa2b62287754')
+source=("argo-cd-${pkgver}.tar.gz::https://github.com/argoproj/argo-cd/archive/v${pkgver}.tar.gz")
+sha512sums=('2d3fe2f90188192769d4f6bdf28e36b6c7dfa98b21e2cd88c56e1a97e3ed4bcacc23b9e09a48a17872113571833fcaefa4a4f71726cf9bff71c9aa816045a05f')
build() {
cd "argo-cd-$pkgver"
@@ -34,13 +30,15 @@
-linkmode=external \
-extldflags \"${LDFLAGS}\"" \
./cmd/argocd
+
+ ./argocd completion bash > argocd.bash
+ ./argocd completion zsh > argocd.zsh
}
package() {
- install -Dm644 argocd.bash "$pkgdir/usr/share/bash-completion/completions/argocd"
- install -Dm644 argocd.zsh "$pkgdir/usr/share/zsh/site-functions/_argocd"
-
cd "argo-cd-$pkgver"
install -D argocd "$pkgdir/usr/bin/argocd"
+ install -Dm644 argocd.bash "$pkgdir/usr/share/bash-completion/completions/argocd"
+ install -Dm644 argocd.zsh "$pkgdir/usr/share/zsh/site-functions/_argocd"
}
Deleted: argocd.bash
===================================================================
--- argocd.bash 2020-11-14 23:37:12 UTC (rev 754263)
+++ argocd.bash 2020-11-14 23:39:15 UTC (rev 754264)
@@ -1 +0,0 @@
-source <(argocd completion bash)
Deleted: argocd.zsh
===================================================================
--- argocd.zsh 2020-11-14 23:37:12 UTC (rev 754263)
+++ argocd.zsh 2020-11-14 23:39:15 UTC (rev 754264)
@@ -1,3 +0,0 @@
-#compdef argocd
-
-source <(argocd completion zsh)
More information about the arch-commits
mailing list