Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "what-anime",
Short: "Find the anime scene by image using your terminal",
Long: `Complete documentation is available at https://github.com/irevenko/what-anime-cli`,
}
RootCmd main cobra command
View Source
var SearchByFile = &cobra.Command{ Use: "file", Short: "Search for the anime scene by existing image file", Long: `what-anime file <PATH_TO_IMAGE>`, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { SearchByImageFile(args[0]) }, }
SearchByFile Command
View Source
var SearchByLink = &cobra.Command{ Use: "link", Short: "Search for the anime scene by existing image url", Long: `what-anime link <IMAGE_URL>`, Args: cobra.MinimumNArgs(1), Run: func(cmd *cobra.Command, args []string) { SearchByImageLink(args[0]) }, }
SearchByLink command
Functions ¶
func SearchByImageFile ¶
func SearchByImageFile(imagePath string)
SearchByImageFile is for finding the anime scene by existing image file
func SearchByImageLink ¶
func SearchByImageLink(imageLink string)
SearchByImageLink is for finding the anime scene by url which end with image file extension like: .jpg or .png
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.