Commit dd6c0ee1 authored by Matthieu C.'s avatar Matthieu C. Committed by Matthieu Coudron
Browse files

novops: add autocompletion

parent 4dfe798d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
, pkg-config
, openssl
, stdenv
, installShellFiles
, libiconv
, darwin
}:
@@ -29,6 +30,7 @@ rustPlatform.buildRustPackage rec {
  ];

  nativeBuildInputs = [
    installShellFiles
    pkg-config # required for openssl-sys
  ];

@@ -38,6 +40,13 @@ rustPlatform.buildRustPackage rec {
      "--lib"
  ];

  postInstall = ''
    installShellCompletion --cmd novops \
      --bash <($out/bin/novops completion bash) \
      --fish <($out/bin/novops completion fish) \
      --zsh <($out/bin/novops completion zsh)
  '';

  meta = with lib; {
    description = "Cross-platform secret & config manager for development and CI environments";
    homepage = "https://github.com/PierreBeucher/novops";