Skip to content

Commit

Permalink
cli: setup UserAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Feb 23, 2024
1 parent f8835c9 commit c3bfe22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/ack-ram-tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
golog "log"
"os"

"github.com/AliyunContainerService/ack-ram-tool/pkg/credentials/provider"
"github.com/AliyunContainerService/ack-ram-tool/pkg/ctl"
"github.com/AliyunContainerService/ack-ram-tool/pkg/ctl/credentialplugin"
"github.com/AliyunContainerService/ack-ram-tool/pkg/ctl/exportcredentials"
Expand Down Expand Up @@ -32,6 +33,7 @@ More info: https://github.com/AliyunContainerService/ack-ram-tool`,
}
log.Logger.Debugf("Version: %s GitCommit: %s", vs.Version, vs.GitCommit)
log.Logger.Debugf("argv: %v", os.Args)
provider.UserAgent = vs.UserAgent()
},
}
)
Expand Down

0 comments on commit c3bfe22

Please sign in to comment.