aboutsummaryrefslogtreecommitdiff
path: root/cmd/episodes.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-02 14:41:18 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-02 14:41:18 +0530
commit720045d9ea2e612ca0f0b7333ee62a73b2955a15 (patch)
treeb25bfecc256408b7fbef71abc2964d439ca6d3bb /cmd/episodes.go
parentbeacbdf5974ab4eadc2ab651ed59b7bd2dcc6e02 (diff)
Bug Fix: `macli login` showing error message that user is not logged in
Diffstat (limited to 'cmd/episodes.go')
-rw-r--r--cmd/episodes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/episodes.go b/cmd/episodes.go
index 05591cd..df5c960 100644
--- a/cmd/episodes.go
+++ b/cmd/episodes.go
@@ -40,6 +40,7 @@ var episodesCmd = &cobra.Command{
" - \x1b[33m`macli episodes -s +1 <anime-name>`\x1b[0m to increment the episodes by 1\n" +
" - \x1b[33m`macli episodes -s -2 <anime-name>`\x1b[0m to decrement the episodes by 2\n",
Run: func(cmd *cobra.Command, args []string) {
+ mal.Init()
searchInput := strings.Join(args, " ")
if searchInput == "" {
var promptText string