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/actions.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'ui/actions.go') diff --git a/ui/actions.go b/ui/actions.go index b626457..2c5d757 100644 --- a/ui/actions.go +++ b/ui/actions.go @@ -23,24 +23,23 @@ import ( "fmt" "os" p "github.com/manifoldco/promptui" - a "github.com/MikunoNaka/MAL2Go/v4/anime" - m "github.com/MikunoNaka/MAL2Go/v4/manga" - "github.com/MikunoNaka/macli/mal" + "vidhukant.com/mg" + "vidhukant.com/macli/mal" ) type AnimeAction struct { Label string Description string - Method func(a.Anime) + Method func(mg.Anime) } type MangaAction struct { Label string Description string - Method func(m.Manga) + Method func(mg.Manga) } -func AnimeActionMenu(animeIsAdded bool) func(a.Anime) { +func AnimeActionMenu(animeIsAdded bool) func(mg.Anime) { options := []AnimeAction { {"Set Status", "Set status for an anime (watching, dropped, etc)", AnimeStatusMenu}, {"Set Episodes", "Set number of episodes watched", EpisodeInput}, @@ -92,7 +91,7 @@ func AnimeActionMenu(animeIsAdded bool) func(a.Anime) { return options[res].Method } -func MangaActionMenu(mangaIsAdded bool) func(m.Manga) { +func MangaActionMenu(mangaIsAdded bool) func(mg.Manga) { options := []MangaAction { {"Set Status", "Set status for a manga (reading, dropped, etc)", MangaStatusMenu}, {"Set Chapters", "Set number of chapters read", ChapterInput}, -- cgit v1.2.3