refactor(auth): replace log calls with fmt for improved consistency and standard output usage
- Updated all authentication commands to use `fmt` instead of `log` for errors, info, and success messages. - Ensured message formatting aligns across commands for consistent user experience.
This commit is contained in:
@@ -48,13 +48,13 @@ func DoQwenLogin(cfg *config.Config, options *LoginOptions) {
|
||||
log.Error(emailErr.Error())
|
||||
return
|
||||
}
|
||||
log.Fatalf("Qwen authentication failed: %v", err)
|
||||
fmt.Printf("Qwen authentication failed: %v\n", err)
|
||||
return
|
||||
}
|
||||
|
||||
if savedPath != "" {
|
||||
log.Infof("Authentication saved to %s", savedPath)
|
||||
fmt.Printf("Authentication saved to %s\n", savedPath)
|
||||
}
|
||||
|
||||
log.Info("Qwen authentication successful!")
|
||||
fmt.Println("Qwen authentication successful!")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user