aboutsummaryrefslogtreecommitdiff
path: root/cmd/status.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-10-02 20:46:50 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-10-02 20:46:50 +0530
commit8fb49796e37d2bf955d8ffa521f6bcda4f36b766 (patch)
treee0728f19a33c2f8f71767472c10767548ce99e94 /cmd/status.go
parente0da6a5205169f34671addd533739b6242d5eff3 (diff)
Automatically select nth search result with --auto-select flag
Diffstat (limited to 'cmd/status.go')
-rw-r--r--cmd/status.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/status.go b/cmd/status.go
index 7c641e6..0c92249 100644
--- a/cmd/status.go
+++ b/cmd/status.go
@@ -48,6 +48,7 @@ var statusCmd = &cobra.Command{
}
mal.SearchLength = conf.SearchLength
mal.SearchOffset = conf.SearchOffset
+ mal.AutoSel = conf.AutoSel
mal.SearchNSFW = conf.SearchNSFW
ui.PromptLength = conf.PromptLength
mal.Init()
@@ -151,6 +152,7 @@ func init() {
statusCmd.Flags().IntVarP(&entryId, "id", "i", -1, "Manually specify the ID of anime/manga (overrides search)")
statusCmd.Flags().StringVarP(&mal.Secret, "authentication-token", "t", "", "MyAnimeList authentication token to use (overrides system keyring if any)")
+ statusCmd.Flags().IntP("auto-select", "S", 0, "Automatically select nth value")
statusCmd.Flags().IntP("prompt-length", "l", 5, "Length of select prompt")
statusCmd.Flags().IntP("search-length", "n", 10, "Amount of search results to load")
statusCmd.Flags().IntP("search-offset", "o", 0, "Offset for the search results")