homebrew-core/Formula/django-completion.rb
Rui Chen 08dda119f0 django-completion 2.2.7
Closes #46259.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-11-04 23:01:01 +09:00

18 lines
561 B
Ruby

class DjangoCompletion < Formula
desc "Bash completion for Django"
homepage "https://github.com/django/django"
url "https://github.com/django/django/archive/2.2.7.tar.gz"
sha256 "5a7c0f42fe136c726ac73908a0367663a08029ea16b51b56494f220a5deaa20d"
head "https://github.com/django/django.git"
bottle :unneeded
def install
bash_completion.install "extras/django_bash_completion" => "django"
end
test do
assert_match "-F _django_completion",
shell_output("source #{bash_completion}/django && complete -p django-admin.py")
end
end