homebrew-core/Formula/packer-completion.rb
Michael Rolli 7cb4822033
packer-completion 1.4.3
Closes #43431.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-08-24 23:35:47 +08:00

18 lines
565 B
Ruby

class PackerCompletion < Formula
desc "Bash completion for Packer"
homepage "https://github.com/mrolli/packer-bash-completion"
url "https://github.com/mrolli/packer-bash-completion/archive/1.4.3.tar.gz"
sha256 "af7b3b49b29ffdb05b519dad2d83066f3d166dd8e29abd406ca0f3d480901df4"
head "https://github.com/mrolli/packer-bash-completion.git"
bottle :unneeded
def install
bash_completion.install "packer"
end
test do
assert_match "-F _packer_completion",
shell_output("source #{bash_completion}/packer && complete -p packer")
end
end