Skip to content

Commit

Permalink
feat: set user agent (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfatta authored Feb 5, 2021
1 parent 10bc65d commit 83c3010
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import (
"gopkg.in/auth0.v5/management"
)

const (
userAgent = "Auth0 CLI"
)

// config defines the exact set of tenants, access tokens, which only exists
// for a particular user's machine.
type config struct {
Expand Down Expand Up @@ -99,7 +103,8 @@ func (c *cli) setup() error {
} else if t.AccessToken != "" {
m, err := management.New(t.Domain,
management.WithStaticToken(t.AccessToken),
management.WithDebug(c.verbose))
management.WithDebug(c.verbose),
management.WithUserAgent(userAgent))
if err != nil {
return err
}
Expand Down

0 comments on commit 83c3010

Please sign in to comment.