threatest: install shell completions
This commit is contained in:
parent
5b14e87eca
commit
f4e1815800
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
|
@ -17,6 +18,17 @@ buildGoModule rec {
|
||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
vendorHash = "sha256-UQ3GPSv7P4+oMvcu4eFlosnw0TQxG33ptlMTQA/5Lkw=";
|
vendorHash = "sha256-UQ3GPSv7P4+oMvcu4eFlosnw0TQxG33ptlMTQA/5Lkw=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd threatest \
|
||||||
|
--bash <($out/bin/threatest completion bash) \
|
||||||
|
--fish <($out/bin/threatest completion fish) \
|
||||||
|
--zsh <($out/bin/threatest completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Framework for end-to-end testing threat detection rules";
|
description = "Framework for end-to-end testing threat detection rules";
|
||||||
homepage = "https://github.com/DataDog/threatest";
|
homepage = "https://github.com/DataDog/threatest";
|
||||||
|
|
Loading…
Reference in a new issue