Merge pull request #327583 from junglerobba/angular-cli-completions

@angular/cli: install shell completions
This commit is contained in:
Aleksana 2024-07-24 23:44:23 +08:00 committed by GitHub
commit f395d4407c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,13 @@ final: prev: {
prePatch = ''
export NG_CLI_ANALYTICS=false
'';
nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
for shell in bash zsh; do
installShellCompletion --cmd ng \
--$shell <($out/bin/ng completion script)
done
'';
};
"@electron-forge/cli" = prev."@electron-forge/cli".override {