lol

auth0-cli: install shell completion (#396185)

authored by

Aleksana and committed by
GitHub
d8239f70 dd396646

+11
+11
pkgs/by-name/au/auth0-cli/package.nix
··· 2 2 lib, 3 3 buildGoModule, 4 4 fetchFromGitHub, 5 + installShellFiles, 6 + stdenv, 5 7 }: 6 8 7 9 buildGoModule rec { ··· 32 34 # Test requires network access 33 35 substituteInPlace internal/cli/universal_login_customize_test.go \ 34 36 --replace-fail "TestFetchUniversalLoginBrandingData" "SkipFetchUniversalLoginBrandingData" 37 + ''; 38 + 39 + nativeBuildInputs = [ installShellFiles ]; 40 + 41 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 42 + installShellCompletion --cmd auth0 \ 43 + --bash <($out/bin/auth0 completion bash) \ 44 + --fish <($out/bin/auth0 completion fish) \ 45 + --zsh <($out/bin/auth0 completion zsh) 35 46 ''; 36 47 37 48 subPackages = [ "cmd/auth0" ];