diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-07-04 01:09:48 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-07-04 01:09:48 +0530 |
commit | 7473964721c349a7f41c6fcd48df14d570cee676 (patch) | |
tree | fcd0007b4688009f4635d1472393b60f11d309b1 /cmd | |
parent | e143dc8955de158365e193882cb1b881abaa2d94 (diff) |
added --search-nsfw flag to search nsfw titles
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/chapters.go | 1 | ||||
-rw-r--r-- | cmd/episodes.go | 1 | ||||
-rw-r--r-- | cmd/score.go | 1 | ||||
-rw-r--r-- | cmd/search.go | 1 | ||||
-rw-r--r-- | cmd/status.go | 1 | ||||
-rw-r--r-- | cmd/version.go | 2 |
6 files changed, 6 insertions, 1 deletions
diff --git a/cmd/chapters.go b/cmd/chapters.go index aa91a85..3107a20 100644 --- a/cmd/chapters.go +++ b/cmd/chapters.go @@ -88,5 +88,6 @@ func init() { chaptersCmd.PersistentFlags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt") chaptersCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load") chaptersCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results") + chaptersCmd.PersistentFlags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results") chaptersCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") } diff --git a/cmd/episodes.go b/cmd/episodes.go index 96a28f0..59532cd 100644 --- a/cmd/episodes.go +++ b/cmd/episodes.go @@ -90,5 +90,6 @@ func init() { episodesCmd.PersistentFlags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt") episodesCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") episodesCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load") + episodesCmd.PersistentFlags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results") episodesCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results") } diff --git a/cmd/score.go b/cmd/score.go index b9e87a4..c69a12a 100644 --- a/cmd/score.go +++ b/cmd/score.go @@ -148,6 +148,7 @@ func init() { scoreCmd.PersistentFlags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt") scoreCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load") scoreCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results") + scoreCmd.PersistentFlags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results") scoreCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") scoreCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") } diff --git a/cmd/search.go b/cmd/search.go index 391919e..053cece 100644 --- a/cmd/search.go +++ b/cmd/search.go @@ -81,5 +81,6 @@ func init() { searchCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") searchCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load") searchCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results") + searchCmd.PersistentFlags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results") searchCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") } diff --git a/cmd/status.go b/cmd/status.go index 3dc056f..e828219 100644 --- a/cmd/status.go +++ b/cmd/status.go @@ -127,6 +127,7 @@ func init() { statusCmd.PersistentFlags().IntVarP(&ui.PromptLength, "prompt-length", "l", 5, "Length of select prompt") statusCmd.PersistentFlags().IntVarP(&mal.SearchLength, "search-length", "n", 10, "Amount of search results to load") statusCmd.PersistentFlags().IntVarP(&mal.SearchOffset, "search-offset", "o", 0, "Offset for the search results") + statusCmd.PersistentFlags().BoolVarP(&mal.SearchNSFW, "search-nsfw", "", false, "Include NSFW-rated items in search results") statusCmd.PersistentFlags().BoolVarP(&mangaMode, "manga", "m", false, "Use manga mode") statusCmd.PersistentFlags().BoolVarP(&queryOnlyMode, "query", "q", false, "Query only (don't update data)") } diff --git a/cmd/version.go b/cmd/version.go index 54391fc..e864597 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -24,7 +24,7 @@ import ( "github.com/spf13/cobra" ) -var version string = "v1.6.0" +var version string = "v1.7.0" var versionCmd = &cobra.Command { Use: "version", |