From 83a39dbebed42b9bd779d86b4fcf30a0f5348d87 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 6 Jul 2022 23:23:01 +0530 Subject: added manga and nsfw results in list command --- cmd/list.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/list.go b/cmd/list.go index f0e4327..b9c82d9 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -66,8 +66,11 @@ var listCmd = &cobra.Command{ os.Exit(1) } - - ui.AnimeList(mal.AnimeList(user, status, sort, nsfw)) + if mangaMode { + ui.MangaList(mal.MangaList(user, status, sort, nsfw)) + } else { + ui.AnimeList(mal.AnimeList(user, status, sort, nsfw)) + } }, } @@ -78,4 +81,5 @@ func init() { listCmd.Flags().StringP("user", "", "@me", "User (@me or blank for self)") listCmd.Flags().StringP("sort", "", "list_score", "Sort the list") listCmd.Flags().BoolP("include-nsfw", "", false, "Include NSFW results") + listCmd.Flags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") } -- cgit v1.2.3