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/search.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/search.go') diff --git a/cmd/search.go b/cmd/search.go index 63f451a..969af8f 100644 --- a/cmd/search.go +++ b/cmd/search.go @@ -38,6 +38,7 @@ var searchCmd = &cobra.Command { "\t\x1b[33m`macli search -m `\x1b[0m searches for a manga\n" + "\t\x1b[33m`macli search`\x1b[0m interactively asks for an anime to search for (same for manga with -m/--manga flag)\n", Run: func(cmd *cobra.Command, args []string) { + mal.Init() // read searchInput from command searchInput := strings.Join(args, " ") mangaMode, err := cmd.Flags().GetBool("manga") -- cgit v1.2.3