bws: install completions
This commit is contained in:
parent
95974f051c
commit
6ecf48c936
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, installShellFiles
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, oniguruma
|
, oniguruma
|
||||||
, openssl
|
, openssl
|
||||||
|
@ -29,6 +30,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
pkg-config
|
pkg-config
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
perl
|
perl
|
||||||
|
@ -51,6 +53,13 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
buildAndTestSubdir = "crates/bws";
|
buildAndTestSubdir = "crates/bws";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
installShellCompletion --cmd bws \
|
||||||
|
--bash <($out/bin/bws completions bash) \
|
||||||
|
--fish <($out/bin/bws completions fish) \
|
||||||
|
--zsh <($out/bin/bws completions zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://github.com/bitwarden/sdk/blob/${src.rev}/CHANGELOG.md";
|
changelog = "https://github.com/bitwarden/sdk/blob/${src.rev}/CHANGELOG.md";
|
||||||
description = "Bitwarden Secrets Manager CLI";
|
description = "Bitwarden Secrets Manager CLI";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user