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 /ui/actions.go | |
parent | a44d6eb2fdddc75983c735e1a0fa744014db9593 (diff) |
migrated from MAL2Go to mg package
Diffstat (limited to 'ui/actions.go')
-rw-r--r-- | ui/actions.go | 13 |
1 files changed, 6 insertions, 7 deletions
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}, |