Skip to content

Commit

Permalink
Fix the version output when running assume -v
Browse files Browse the repository at this point in the history
  • Loading branch information
chrnorm committed Sep 26, 2024
1 parent 8a621b5 commit 9c537a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/assume/entrypoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/common-fate/clio/cliolog"
"github.com/common-fate/granted/internal/build"
"github.com/common-fate/granted/pkg/alias"
"github.com/common-fate/granted/pkg/assumeprint"
"github.com/common-fate/granted/pkg/autosync"
"github.com/common-fate/granted/pkg/browser"
"github.com/common-fate/granted/pkg/config"
Expand Down Expand Up @@ -61,7 +62,8 @@ func GlobalFlags() []cli.Flag {

func GetCliApp() *cli.App {
cli.VersionPrinter = func(c *cli.Context) {
fmt.Printf("Granted version: %s\n", build.Version)
ver := fmt.Sprintf("Granted version: %s\n", build.Version)
fmt.Print(assumeprint.SafeOutput(ver))
}

app := &cli.App{
Expand Down

0 comments on commit 9c537a7

Please sign in to comment.