pulumi: zsh and bash completion
Closes #33670. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
59c560b300
commit
1054f57647
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ class Pulumi < Formula
|
|||
system "make", "dist"
|
||||
bin.install Dir["#{buildpath}/bin/*"]
|
||||
prefix.install_metafiles
|
||||
|
||||
# Install bash completion
|
||||
output = Utils.popen_read("#{bin}/pulumi gen-completion bash")
|
||||
(bash_completion/"pulumi").write output
|
||||
|
||||
# Install zsh completion
|
||||
output = Utils.popen_read("#{bin}/pulumi gen-completion zsh")
|
||||
(zsh_completion/"_pulumi").write output
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue