oauth2l 1.0.1 (new formula)
Update test to match failed output Closes #46082. Signed-off-by: Rui Chen <rchen@meetup.com>
This commit is contained in:
parent
f18987b490
commit
c4715b444f
1 changed files with 21 additions and 0 deletions
21
Formula/oauth2l.rb
Normal file
21
Formula/oauth2l.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
class Oauth2l < Formula
|
||||
desc "Simple CLI for interacting with Google oauth tokens"
|
||||
homepage "https://github.com/google/oauth2l"
|
||||
url "https://github.com/google/oauth2l/archive/v1.0.1.tar.gz"
|
||||
sha256 "8207bb796727019b277f63c709fa4e399f2d40c223633d0df6c74dc1f3c9385f"
|
||||
head "https://github.com/google/oauth2l.git"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GO111MODULE"] = "on"
|
||||
|
||||
system "go", "build", "-o", "oauth2l"
|
||||
bin.install "oauth2l"
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "Invalid Value",
|
||||
shell_output("#{bin}/oauth2l info abcd1234")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue