From 720045d9ea2e612ca0f0b7333ee62a73b2955a15 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 2 Jul 2022 14:41:18 +0530 Subject: Bug Fix: `macli login` showing error message that user is not logged in --- cmd/user_info.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/user_info.go') diff --git a/cmd/user_info.go b/cmd/user_info.go index 8b6463e..b83af8b 100644 --- a/cmd/user_info.go +++ b/cmd/user_info.go @@ -32,6 +32,7 @@ var userInfoCmd = &cobra.Command { Currently, MyAnimeList doesn't allow reading of other users' profiles. `, Run: func(cmd *cobra.Command, args []string) { + mal.Init() userInfo := mal.GetUserInfo() fmt.Printf("\x1b[1;34mUsername: \x1b[0m%s\n", userInfo.Name) -- cgit v1.2.3