aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 00:22:46 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-06-30 00:22:46 +0530
commit5ad76ed2e6e67b421c27ff153e2ae348152eaa40 (patch)
tree419ff383e201e3427f0b2f300089d8da74142ae1 /cmd
parentaf8701225a83e0521b6f5e5c68aab6b4f0809749 (diff)
added confirmation message and color coding when setting anime status
Diffstat (limited to 'cmd')
-rw-r--r--cmd/status.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/status.go b/cmd/status.go
index feb5c10..dcf177c 100644
--- a/cmd/status.go
+++ b/cmd/status.go
@@ -68,8 +68,8 @@ func setAnimeStatus(statusInput, searchInput string) {
if statusInput == "" {
ui.AnimeStatusMenu(anime)
} else {
- mal.SetAnimeStatus(anime.Id, statusInput)
- fmt.Printf("Successfully set \"%s\" to \"%s\"\n", anime.Title, statusInput)
+ resp := mal.SetAnimeStatus(anime.Id, statusInput)
+ fmt.Println(ui.CreateStatusUpdateConfirmationMessage(anime.Title, resp.Status))
}
}
@@ -83,8 +83,8 @@ func setMangaStatus(statusInput, searchInput string) {
if statusInput == "" {
ui.MangaStatusMenu(manga)
} else {
- mal.SetAnimeStatus(manga.Id, statusInput)
- fmt.Printf("Successfully set \"%s\" to \"%s\"\n", manga.Title, statusInput)
+ resp := mal.SetAnimeStatus(manga.Id, statusInput)
+ fmt.Println(ui.CreateStatusUpdateConfirmationMessage(manga.Title, resp.Status))
}
}