We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26c1053 commit 6a7f4edCopy full SHA for 6a7f4ed
cli/command/whoami/whoami.go
@@ -68,7 +68,13 @@ func runWhoami(wpmCli command.Cli) error {
68
return errors.New("user must be logged in to perform this action")
69
}
70
71
- username, err := validateToken(wpmCli, cfg.AuthToken)
+ var username string
72
+ err := wpmCli.Progress().RunWithProgress("", func() error {
73
+ var err error
74
+ username, err = validateToken(wpmCli, cfg.AuthToken)
75
+ return err
76
+ }, wpmCli.Out())
77
+
78
if err != nil {
79
return err
80
0 commit comments