aboutsummaryrefslogtreecommitdiff
path: root/mal/mal.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-16 15:34:52 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-16 15:34:52 +0530
commit24ea0db80befd3bf5a67781084f48f0fa764d74f (patch)
tree9c1f721ebc59a6200cbcfb78caac22361923737d /mal/mal.go
parente93a197b6f47ed45e5f2dbe10762d6344a3e32c7 (diff)
added user-info command
Diffstat (limited to 'mal/mal.go')
-rw-r--r--mal/mal.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/mal/mal.go b/mal/mal.go
index b961bfd..da25eb3 100644
--- a/mal/mal.go
+++ b/mal/mal.go
@@ -22,12 +22,14 @@ import (
"github.com/MikunoNaka/macli/auth"
a "github.com/MikunoNaka/MAL2Go/anime"
m "github.com/MikunoNaka/MAL2Go/manga"
+ u "github.com/MikunoNaka/MAL2Go/user"
ua "github.com/MikunoNaka/MAL2Go/user/anime"
um "github.com/MikunoNaka/MAL2Go/user/manga"
)
var animeClient a.Client
var mangaClient m.Client
+var userClient u.Client
var userAnimeClient ua.Client
var userMangaClient um.Client
@@ -37,6 +39,7 @@ func Init() {
// initialise MAL2Go Client(s)
animeClient.AuthToken = "Bearer " + secret
mangaClient.AuthToken = "Bearer " + secret
+ userClient.AuthToken = "Bearer " + secret
userAnimeClient.AuthToken = "Bearer " + secret
userMangaClient.AuthToken = "Bearer " + secret
}