File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,20 @@ class Granted < Formula
2020 def install
2121 ldflags = "-s -w -X github.com/common-fate/granted/internal/build.Version=#{ version } "
2222 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"
2326 end
2427
2528 test do
2629 assert_match version . to_s , shell_output ( "#{ bin } /granted --version" )
2730
2831 output = shell_output ( "#{ bin } /granted auth configure 2>&1" , 1 )
2932 assert_match "[✘] please provide a url argument" , output
33+
34+ ENV [ "GRANTED_ALIAS_CONFIGURED" ] = "true"
35+ assert_match version . to_s , shell_output ( "#{ bin } /assume --version" )
36+ assert_match version . to_s , shell_output ( "#{ bin } /assumego --version" )
37+ assert_path_exists bin /"assume.fish"
3038 end
3139end
You can’t perform that action at this time.
0 commit comments