Package Details: nodejs-azure-cli 0.10.1-2

Git Clone URL: https://aur.archlinux.org/nodejs-azure-cli.git (read-only)
Package Base: nodejs-azure-cli
Description: Windows Azure Cross Platform Command Line tool
Upstream URL: https://github.com/Azure/azure-xplat-cli
Licenses: Apache
Submitter: alub
Maintainer: alub
Last Packager: alub
Votes: 5
Popularity: 0.155091
First Submitted: 2015-09-15 13:30
Last Updated: 2016-06-21 15:50

Latest Comments

axolotl commented on 2016-06-24 03:01

alub, thanks for the quick turnaround, but there is a quirk with bash-completion; you need to have the completion file (/usr/share/bash-completion/completions/$file) match the binary that it targets (/usr/bin/$file).

In this case /usr/share/bash-completion/completions/azure /usr/bin/azure

Does 0.10.1-2 work for you, because it does not tab complete for me?

axolotl commented on 2016-06-21 15:33

this diff should allow you to add bash completion to this package, (it is already built into the tool):

diff --git a/PKGBUILD b/PKGBUILD
index 539da4d..8c63b83 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
# Maintainer: Antoine Lubineau <antoine@lubignon.info>
# Contributor: Philipp Wolfer <ph.wolfer@gmail.com>

+_binname=azure
_npmname=azure-cli
_npmver=0.10.1
pkgname=nodejs-${_npmname} # All lowercase
@@ -22,6 +23,10 @@ package() {
mkdir -p $_npmdir
cd $_npmdir
npm install -g --prefix "$pkgdir/usr" $_npmname@$_npmver
+ cd $srcdir
+ mkdir -p $pkgdir/usr/share/bash-completion/completions
+ $pkgdir/usr/bin/azure --completion > ./bash.completion
+ install -D -m644 ./bash.completion $pkgdir/usr/share/bash-completion/completions/$_binname
}

colemickens commented on 2015-10-13 00:46

v0.9.10 is out:
https://github.com/Azure/azure-xplat-cli/releases/tag/v0.9.10-October2015