Skip to content

Commit

Permalink
chore: hide server-url flag from help output
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris committed Dec 2, 2024
1 parent 121a1d1 commit bbd7b4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ func init() {
rootCmd.PersistentFlags().String("server-url", "http://localhost:8080", "OpenFGA API URI e.g. https://api.fga.example:8080") //nolint:lll
rootCmd.PersistentFlags().String("api-url", "http://localhost:8080", "OpenFGA API URI e.g. https://api.fga.example:8080") //nolint:lll

rootCmd.PersistentFlags().MarkHidden("server-url")

Check failure on line 64 in cmd/root.go

View workflow job for this annotation

GitHub Actions / Lints

Error return value of `(*github.com/spf13/pflag.FlagSet).MarkHidden` is not checked (errcheck)

rootCmd.PersistentFlags().String("api-token", "", "API Token. Will be sent in as a Bearer in the Authorization header")
rootCmd.PersistentFlags().String("api-token-issuer", "", "API Token Issuer. API responsible for issuing the API Token. Used in the Client Credentials flow") //nolint:lll
rootCmd.PersistentFlags().String("api-audience", "", "API Audience. Used when performing the Client Credentials flow")
Expand Down

0 comments on commit bbd7b4d

Please sign in to comment.