lab: generate and install zsh completion

Env variables are set to dummy values
so `lab` doesn't get stuck trying to helpfully
interact with user for initial configuration.
This commit is contained in:
Will Dietz 2019-03-17 16:10:35 -05:00
parent 3b7c3cbdd0
commit 3d8170098f

View File

@ -17,6 +17,12 @@ buildGoPackage rec {
goDeps = ./deps.nix;
postInstall = ''
mkdir -p $out/share/zsh/site-functions
LAB_CORE_HOST=a LAB_CORE_USER=b LAB_CORE_TOKEN=c \
$out/bin/lab completion zsh > $out/share/zsh/site-functions/_lab
'';
meta = with stdenv.lib; {
description = "Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab";
homepage = https://zaquestion.github.io/lab;