lean-cli: install bash and zsh completions

Closes #15577.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
Ang Long 2017-07-13 14:37:07 +08:00 committed by ilovezfs
parent 553df6635c
commit 45258d8412

View file

@ -22,6 +22,8 @@ class LeanCli < Formula
system "go", "build", "-o", bin/"lean",
"-ldflags", "-X main.pkgType=#{build_from}",
"github.com/leancloud/lean-cli/lean"
bash_completion.install "misc/lean-bash-completion" => "lean"
zsh_completion.install "misc/lean-zsh-completion" => "_lean"
end
test do