From c45cb6ebe10084d10f4fcf6189f26199f0913402 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 16 Jun 2022 23:01:52 +0530 Subject: renamed Init to init function in mal because it should be called automatically --- cmd/search.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmd/search.go') diff --git a/cmd/search.go b/cmd/search.go index 5f97861..da57862 100644 --- a/cmd/search.go +++ b/cmd/search.go @@ -22,7 +22,6 @@ import ( "strings" "github.com/spf13/cobra" "github.com/MikunoNaka/macli/ui" - "github.com/MikunoNaka/macli/mal" ) var searchCmd = &cobra.Command { @@ -32,7 +31,6 @@ var searchCmd = &cobra.Command { -- help/description to be added later `, Run: func(cmd *cobra.Command, args []string) { - mal.Init() // needs to be manually called else it won't let you login // read searchInput from command searchInput := strings.Join(args, " ") mangaMode, _ := cmd.Flags().GetBool("manga") -- cgit v1.2.3