formatting
This commit is contained in:
parent
592ed82593
commit
71748267fc
88
cmd/set.go
88
cmd/set.go
@ -29,52 +29,46 @@ 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().StringVarP(
|
||||||
setCmd.PersistentFlags().
|
&setSorting,
|
||||||
StringVarP(
|
"sort",
|
||||||
&setSorting,
|
"s",
|
||||||
"sort",
|
"toplist",
|
||||||
"s",
|
"sort by for results, valid sorts: date_added, relevance, random, views, favorites, setlist.",
|
||||||
"toplist",
|
)
|
||||||
"sort by for results, valid sorts: date_added, relevance, random, views, favorites, setlist.",
|
setCmd.PersistentFlags().StringVarP(
|
||||||
)
|
&setOrder,
|
||||||
setCmd.PersistentFlags().
|
"order",
|
||||||
StringVarP(
|
"o",
|
||||||
&setOrder,
|
"desc",
|
||||||
"order",
|
"sort order for results, valid sorts: asc desc.",
|
||||||
"o",
|
)
|
||||||
"desc",
|
setCmd.PersistentFlags().IntVarP(
|
||||||
"sort order for results, valid sorts: asc desc.",
|
&setPage,
|
||||||
)
|
"maxPage",
|
||||||
setCmd.PersistentFlags().
|
"m",
|
||||||
IntVarP(
|
5,
|
||||||
&setPage,
|
"number of pages to randomly choose wallpaper from.",
|
||||||
"maxPage",
|
)
|
||||||
"m",
|
setCmd.PersistentFlags().StringSliceVar(
|
||||||
5,
|
&setRatios,
|
||||||
"number of pages to randomly choose wallpaper from.",
|
"ratios",
|
||||||
)
|
[]string{"16x9", "16x10"},
|
||||||
setCmd.PersistentFlags().
|
"ratios to search for.",
|
||||||
StringSliceVar(
|
)
|
||||||
&setRatios,
|
setCmd.PersistentFlags().StringVar(
|
||||||
"ratios",
|
&setAtLeast,
|
||||||
[]string{"16x9", "16x10"},
|
"at-least",
|
||||||
"ratios to search for.",
|
"2560x1440",
|
||||||
)
|
"minimum resolution for results.",
|
||||||
setCmd.PersistentFlags().
|
)
|
||||||
StringVar(
|
|
||||||
&setAtLeast,
|
|
||||||
"at-least",
|
|
||||||
"2560x1440",
|
|
||||||
"minimum resolution for results.",
|
|
||||||
)
|
|
||||||
setCmd.PersistentFlags().StringVarP(
|
setCmd.PersistentFlags().StringVarP(
|
||||||
&setScript,
|
&setScript,
|
||||||
"script",
|
"script",
|
||||||
@ -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)
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user