This commit is contained in:
Corey Johnson 2019-11-07 10:20:49 -08:00
Родитель d8f8f538cc
Коммит 104e36f130
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1,12 +1,12 @@
class Gh < Formula
desc "GitHub CLI"
head "https://github.com/github/gh-cli.git", :branch => "prototype"
url "https://github.com/github/homebrew-gh/releases/download/v0.0.1/gh-cli_0.0.1_darwin_amd64.tar.gz"
sha256 "8890ac5a60b1cceab4186cb2cf3129b955cb4122ce9c37aa936015139be986b1"
depends_on "go" => :build
bottle :unneeded
def install
system "make"
bin.install "bin/gh"
bin.install "gh"
(bash_completion/"gh.sh").write `#{bin}/gh completion -s bash`
(zsh_completion/"_gh").write `#{bin}/gh completion -s zsh`
end
@ -15,4 +15,4 @@ class Gh < Formula
help_text = shell_output("#{bin}/gh --help")
assert_includes help_text, "Usage:"
end
end
end