formatting

This commit is contained in:
abs3nt 2023-10-24 11:59:32 -07:00
parent 592ed82593
commit 71748267fc
Signed by: abs3nt
GPG Key ID: A7BD96A8BAB04C09

View File

@ -29,47 +29,41 @@ func init() {
"110", "110",
"purity for the setList search.", "purity for the setList search.",
) )
setCmd.PersistentFlags(). setCmd.PersistentFlags().StringVarP(
StringVarP(
&setCategories, &setCategories,
"categories", "categories",
"c", "c",
"010", "010",
"categories for the setList search.", "categories for the setList search.",
) )
setCmd.PersistentFlags(). setCmd.PersistentFlags().StringVarP(
StringVarP(
&setSorting, &setSorting,
"sort", "sort",
"s", "s",
"toplist", "toplist",
"sort by for results, valid sorts: date_added, relevance, random, views, favorites, setlist.", "sort by for results, valid sorts: date_added, relevance, random, views, favorites, setlist.",
) )
setCmd.PersistentFlags(). setCmd.PersistentFlags().StringVarP(
StringVarP(
&setOrder, &setOrder,
"order", "order",
"o", "o",
"desc", "desc",
"sort order for results, valid sorts: asc desc.", "sort order for results, valid sorts: asc desc.",
) )
setCmd.PersistentFlags(). setCmd.PersistentFlags().IntVarP(
IntVarP(
&setPage, &setPage,
"maxPage", "maxPage",
"m", "m",
5, 5,
"number of pages to randomly choose wallpaper from.", "number of pages to randomly choose wallpaper from.",
) )
setCmd.PersistentFlags(). setCmd.PersistentFlags().StringSliceVar(
StringSliceVar(
&setRatios, &setRatios,
"ratios", "ratios",
[]string{"16x9", "16x10"}, []string{"16x9", "16x10"},
"ratios to search for.", "ratios to search for.",
) )
setCmd.PersistentFlags(). setCmd.PersistentFlags().StringVar(
StringVar(
&setAtLeast, &setAtLeast,
"at-least", "at-least",
"2560x1440", "2560x1440",
@ -106,7 +100,7 @@ var (
Use: "set", Use: "set",
Aliases: []string{"s"}, Aliases: []string{"s"},
Args: cobra.RangeArgs(0, 1), Args: cobra.RangeArgs(0, 1),
Short: "query wallhaven with the provided parameters then download the image, set it as wallpaper, and generate colorscheme", Short: "Wallhaven downloader with the option to run a script after the image has been downloaded",
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
return set(args) return set(args)
}, },