homebrew-core/Formula/django-completion.rb

19 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/3.0.8.tar.gz"
sha256 "471efd6f77274b1615ee1f4d54d6124fd24da3c1af62e02c2b4909296d10a1ac"
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