Merge pull request #95106 from mikefaille/tanka

tanka: add bash completion
gstqt5
Daniël de Kok 2020-08-21 19:22:33 +02:00 committed by GitHub
commit 117c05954b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ buildGoModule, fetchFromGitHub, lib, installShellFiles }:
buildGoModule rec {
pname = "tanka";
@ -17,6 +17,13 @@ buildGoModule rec {
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=${version}" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
echo "complete -C $out/bin/tk tk" > tk.bash
installShellCompletion tk.bash
'';
meta = with lib; {
description = "Flexible, reusable and concise configuration for Kubernetes";
homepage = "https://github.com/grafana/tanka/";