diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-30 18:36:25 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-30 18:36:25 +0530 |
commit | e61698cc5b428ff80a1fe3e2da18c047df47b1d3 (patch) | |
tree | 9734d6d38706346420ed14617c10f676a834db3f /ui | |
parent | d3951be451e7df5d889061716c94602ba6b1d71a (diff) |
added chapters command
Diffstat (limited to 'ui')
-rw-r--r-- | ui/episodes.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 |