aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-06 23:23:01 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-06 23:23:01 +0530
commit83a39dbebed42b9bd779d86b4fcf30a0f5348d87 (patch)
treeced0a3cbcde63fdeb01e678191b3eee07e056ad4 /cmd
parentb5a8c767660fde8b73fee1ea0b261b28e35ccc62 (diff)
added manga and nsfw results in list command
Diffstat (limited to 'cmd')
-rw-r--r--cmd/list.go8
1 files changed, 6 insertions, 2 deletions
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")
}