aboutsummaryrefslogtreecommitdiff
path: root/ui/status.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 10:57:27 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-15 10:57:27 +0530
commitfff3dadabc321871e6819392efc605c6dffe2e69 (patch)
tree25aceed23b73b2ad975a06d73fad091d0886a2a6 /ui/status.go
parenta44d6eb2fdddc75983c735e1a0fa744014db9593 (diff)
migrated from MAL2Go to mg package
Diffstat (limited to 'ui/status.go')
-rw-r--r--ui/status.go9
1 files changed, 4 insertions, 5 deletions
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"},