replace .Value.String() with .GetString(...)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
committed by
Florian Schade
parent
8564fa4536
commit
032c218789
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user