in cobra/controller/unsplash.go [33:59]
func UnsplashCmd() *cobra.Command {
man, err := helper.GetManual("unsplash")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
cmd := &cobra.Command{
Use: man.Use,
Short: man.Short,
Long: man.Long,
Example: man.Example,
PreRunE: unsplashPreRun,
RunE: unsplashRun,
}
cmd.Flags().String("id", "", "The photo’s ID. Leave it empty if you want to download a random photo instead")
cmd.Flags().String("collections", "", "Public collection ID(‘s) to filter selection. If multiple, comma-separated")
cmd.Flags().Bool("featured", false, "Limit selection to featured photos. Valid values: false, true.")
cmd.Flags().String("filter", "low", "Limit results by content safety. Default: low. Valid values are low and high.")
cmd.Flags().String("orientation", "landscape", "Filter by photo orientation. Valid values: landscape, portrait, squarish.")
cmd.Flags().String("query", "mountains", "Limit selection to photos matching a search term.")
cmd.Flags().String("size", "all", "Photos size. Valid values: all, thumb, small, regular, full, raw. Default: all")
cmd.Flags().String("username", "", "Limit selection to a single user.")
return cmd
}