From fff3dadabc321871e6819392efc605c6dffe2e69 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 15 Aug 2023 10:57:27 +0530 Subject: migrated from MAL2Go to mg package --- ui/status.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ui/status.go') diff --git a/ui/status.go b/ui/status.go index d54f07e..cd840d6 100644 --- a/ui/status.go +++ b/ui/status.go @@ -22,9 +22,8 @@ import ( "strings" "fmt" "os" - "github.com/MikunoNaka/macli/mal" - a "github.com/MikunoNaka/MAL2Go/v4/anime" - m "github.com/MikunoNaka/MAL2Go/v4/manga" + "vidhukant.com/macli/mal" + "vidhukant.com/mg" p "github.com/manifoldco/promptui" ) @@ -84,7 +83,7 @@ func CreateStatusUpdateConfirmationMessage(title, status, prevStatus string) str return "\x1b[35m" + title + "\x1b[0m Status :: " + GetColorCodeByStatus(status) + FormatStatus(status) + "\x1b[0m" } -func AnimeStatusMenu(anime a.Anime) { +func AnimeStatusMenu(anime mg.Anime) { options := []StatusOption { {"Watching", "watching"}, {"Completed", "completed"}, @@ -140,7 +139,7 @@ func AnimeStatusMenu(anime a.Anime) { fmt.Println(CreateStatusUpdateConfirmationMessage(anime.Title, resp.Status, anime.MyListStatus.Status)) } -func MangaStatusMenu(manga m.Manga) { +func MangaStatusMenu(manga mg.Manga) { options := []StatusOption { {"Reading", "reading"}, {"Completed", "completed"}, -- cgit v1.2.3