We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 700340d commit 8630f61Copy full SHA for 8630f61
Formula/g/granted.rb
@@ -20,12 +20,19 @@ class Granted < Formula
20
def install
21
ldflags = "-s -w -X github.com/common-fate/granted/internal/build.Version=#{version}"
22
system "go", "build", *std_go_args(ldflags:), "./cmd/granted"
23
+ bin.install_symlink "granted" => "assumego"
24
+ bin.install "scripts/assume"
25
+ bin.install "scripts/assume.fish"
26
end
27
28
test do
29
assert_match version.to_s, shell_output("#{bin}/granted --version")
30
31
output = shell_output("#{bin}/granted auth configure 2>&1", 1)
32
assert_match "[✘] please provide a url argument", output
33
+
34
+ assert_path_exists bin/"assume"
35
+ assert_path_exists bin/"assumego"
36
+ assert_path_exists bin/"assume.fish"
37
38
0 commit comments