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
+1 -1
View File
@@ -85,7 +85,7 @@ func Create(cfg *config.Config) *cobra.Command {
return err
}
expiry, err := time.ParseDuration(cmd.Flag("expiration").Value.String())
expiry, err := cmd.Flags().GetDuration("expiration")
if err != nil {
return err
}