replace more .Value.String() occurences

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2025-12-15 16:40:27 +01:00
committed by Florian Schade
parent 032c218789
commit d0e51010bf
10 changed files with 53 additions and 33 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ func ResetPassword(cfg *config.Config) *cobra.Command {
ctx, cancel := context.WithCancel(cmd.Context())
defer cancel()
return resetPassword(ctx, logger, cfg, cmd.Flag("user-name").Value.String())
userNameFlag, _ := cmd.Flags().GetString("user-name")
return resetPassword(ctx, logger, cfg, userNameFlag)
},
}
resetPasswordCmd.Flags().StringP(