replace .Value.String() with .GetString(...)

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 8564fa4536
commit 032c218789
11 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ func Create(cfg *config.Config) *cobra.Command {
return err
}
userName := cmd.Flag("user-name").Value.String()
userName, _ := cmd.Flags().GetString("user-name")
if userName == "" {
fmt.Printf("Username to create app token for: ")
if _, err := fmt.Scanln(&userName); err != nil {