cli

package
v0.0.0-...-5f212ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 21 Imported by: 0

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 AddCommands

func AddCommands()

AddCommands launches all commands

func SearchByImageFile

func SearchByImageFile(imagePath string)

SearchByImageFile is for finding the anime scene by existing image file

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL