From e61698cc5b428ff80a1fe3e2da18c047df47b1d3 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 30 Jun 2022 18:36:25 +0530 Subject: added chapters command --- ui/episodes.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/episodes.go') diff --git a/ui/episodes.go b/ui/episodes.go index 2ea0197..edf05a4 100644 --- a/ui/episodes.go +++ b/ui/episodes.go @@ -34,6 +34,9 @@ func CreateEpisodeUpdateConfirmationMessage(title string, prevEpNum, epNum int) return fmt.Sprintf("Set Episodes Watched for \x1b[35m%s\x1b[0m from \x1b[1;33m%d\x1b[0m to \x1b[1;36m%d\x1b[0m.", title, prevEpNum, epNum) } +func CreateChapterUpdateConfirmationMessage(title string, prevChNum, chNum int) string { + return fmt.Sprintf("Set Chapters Read for \x1b[35m%s\x1b[0m from \x1b[1;33m%d\x1b[0m to \x1b[1;36m%d\x1b[0m.", title, prevChNum, chNum) +} func EpisodeInput(anime a.Anime) { // fetch number of total episodes, number of watched episodes from the API -- cgit v1.2.3