diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 10:57:27 +0530 |
commit | fff3dadabc321871e6819392efc605c6dffe2e69 (patch) | |
tree | 25aceed23b73b2ad975a06d73fad091d0886a2a6 /cmd/score.go | |
parent | a44d6eb2fdddc75983c735e1a0fa744014db9593 (diff) |
migrated from MAL2Go to mg package
Diffstat (limited to 'cmd/score.go')
-rw-r--r-- | cmd/score.go | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/cmd/score.go b/cmd/score.go index f7396e7..7b1dfca 100644 --- a/cmd/score.go +++ b/cmd/score.go @@ -24,12 +24,10 @@ import ( "strings" "strconv" "errors" - "github.com/MikunoNaka/macli/ui" - "github.com/MikunoNaka/macli/mal" - "github.com/MikunoNaka/macli/util" - a "github.com/MikunoNaka/MAL2Go/v4/anime" - m "github.com/MikunoNaka/MAL2Go/v4/manga" - + "vidhukant.com/macli/ui" + "vidhukant.com/macli/mal" + "vidhukant.com/macli/util" + "vidhukant.com/mg" "github.com/spf13/cobra" ) @@ -90,7 +88,7 @@ func validateScore(input string, currentScore int) (int, error) { } func setAnimeScore(scoreInput, searchInput string) { - var selectedAnime a.Anime + var selectedAnime mg.Anime if entryId > 0 { selectedAnime = mal.GetAnimeData(entryId, []string{"my_list_status"}) } @@ -129,7 +127,7 @@ func setAnimeScore(scoreInput, searchInput string) { } func setMangaScore(scoreInput, searchInput string) { - var selectedManga m.Manga + var selectedManga mg.Manga if entryId > 0 { selectedManga = mal.GetMangaData(entryId, []string{"my_list_status"}) } |