kubectl-klock: add completion script

This commit is contained in:
Sven Mattsen 2023-11-18 22:02:38 +01:00
parent 3b079d38e4
commit 4f6de75a95
No known key found for this signature in database
GPG Key ID: 23E0FC8068AE39BA

View File

@ -1,9 +1,11 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, makeWrapper }:
buildGoModule rec {
pname = "kubectl-klock";
version = "0.5.0";
nativeBuildInputs = [ makeWrapper ];
src = fetchFromGitHub {
owner = "applejag";
repo = pname;
@ -13,6 +15,10 @@ buildGoModule rec {
vendorHash = "sha256-AkYKKM4PR/msG44MwdSq6XAf6EvdtJHoXyw7Xj7MXso=";
postInstall = ''
makeWrapper $out/bin/kubectl-klock $out/bin/kubectl_complete-klock --add-flags __complete
'';
meta = with lib; {
description = "A kubectl plugin to render watch output in a more readable fashion";
homepage = "https://github.com/applejag/kubectl-klock";