Added support for http client configuration via command arguments

This commit is contained in:
Daniel Del Rio Figueira 2024-11-29 10:16:33 +01:00
parent d9703ff6fd
commit d5e2df49db
No known key found for this signature in database
GPG key ID: 16C55CB50D1B770D
4 changed files with 62 additions and 2 deletions

View file

@ -41,7 +41,11 @@ var verifyCMD = &cobra.Command{
fmt.Println()
}
client, err := api.NewClient(nil, "", serverAddress, userPrivateKey, userPassword)
httpClient, err := util.GetHttpClient()
if err != nil {
return err
}
client, err := api.NewClient(httpClient, "", serverAddress, userPrivateKey, userPassword)
if err != nil {
return fmt.Errorf("Creating Client: %w", err)
}