plz-cli 0.1.6 (new formula)

plz 0.1.6 (new formula)

Closes #118486.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Patrick Linnane <patrick@linnane.io>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Rui Chen 2022-12-19 00:04:26 -05:00 committed by BrewTestBot
parent 6f754e0eb1
commit 853fbed522
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 20 additions and 0 deletions

20
Formula/plz-cli.rb Normal file
View File

@ -0,0 +1,20 @@
class PlzCli < Formula
desc "Copilot for your terminal"
homepage "https://github.com/m1guelpf/plz-cli"
url "https://github.com/m1guelpf/plz-cli/archive/refs/tags/v0.1.6.tar.gz"
sha256 "c6f20fc3b60caa39b347b38054f5f1f766339ecf4ab0ef19864ef5cbe18f520d"
license "MIT"
head "https://github.com/m1guelpf/plz-cli.git", branch: "main"
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
ENV["OPENAI_API_KEY"] = "sk-XXXXXXXX"
expected = "✖ Failed to get a response. Have you set the OPENAI_API_KEY variable?"
assert_match expected, shell_output("#{bin}/plz brewtest", 1)
end
end