diff options
-rw-r--r-- | cmd/episodes.go | 10 | ||||
-rw-r--r-- | ui/episodes.go | 6 |
2 files changed, 9 insertions, 7 deletions
diff --git a/cmd/episodes.go b/cmd/episodes.go index 5c8b6e0..eac501a 100644 --- a/cmd/episodes.go +++ b/cmd/episodes.go @@ -30,12 +30,14 @@ import ( // statusCmd represents the status command var episodesCmd = &cobra.Command{ Use: "episodes", - Short: "Set an anime/manga's status", - Long: "Set an anime's status\n" + + Short: "Set the number of episodes watched", + Long: "Set the number of episodes watched" + "\n" + "Example Usage:\n" + - " - \x1b[33m`macli status <anime-name>`\x1b[0m For interactive prompt (anime-name can be omitted)\n" + - " - \x1b[33m`macli status -s \x1b[34mwatching|plan_to_watch|dropped|on_hold|completed\x1b[33m <anime-name>`\x1b[0m to specify status from command\n", + " - \x1b[33m`macli episodes <anime-name>`\x1b[0m For interactive prompt (anime-name can be omitted)\n" + + " - \x1b[33m`macli episodes -s 4 <anime-name>`\x1b[0m to set the episodes to 4\n" + + " - \x1b[33m`macli episodes -s +1 <anime-name>`\x1b[0m to increment the episodes by 1\n" + + " - \x1b[33m`macli episodes -s -2 <anime-name>`\x1b[0m to decrement the episodes by 2\n", Run: func(cmd *cobra.Command, args []string) { searchInput := strings.Join(args, " ") if searchInput == "" { diff --git a/ui/episodes.go b/ui/episodes.go index 748482b..2ea0197 100644 --- a/ui/episodes.go +++ b/ui/episodes.go @@ -31,7 +31,7 @@ import ( // very short name I know func CreateEpisodeUpdateConfirmationMessage(title string, prevEpNum, epNum int) string { - return fmt.Sprintf("Set Episodes Watched for \x1b[35m%s\x1b[0m from \x1b[1;36m%d\x1b[0m to \x1b[1;33m%d\x1b[0m.", title, prevEpNum, epNum) + 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) } @@ -55,7 +55,7 @@ func EpisodeInput(anime a.Anime) { } prompt := p.Prompt { - Label: fmt.Sprintf("Set Episode Number (%d/%d watched):", epWatchedNum, epTotalNum), + Label: fmt.Sprintf("Set Episode Number (%d/%d watched): ", epWatchedNum, epTotalNum), Templates: template, Validate: validate, } @@ -90,7 +90,7 @@ func ChapterInput(manga m.Manga) { } prompt := p.Prompt { - Label: fmt.Sprintf("Set Chapter Number (%d/%d read):", chReadNum, chTotalNum), + Label: fmt.Sprintf("Set Chapter Number (%d/%d read): ", chReadNum, chTotalNum), Templates: template, Validate: validate, } |