A TUI alternative to irevenko/what-anime-cli. Wrapper for trace.moe API.
what-anime-tui-showcase.mp4
Download and install Go from go.dev, then enter the following command in your terminal:
go install github.com/mandriota/what-anime-tui@latest
You may also need to add go/bin
directory to PATH
environment variable.
Enter the following command in your terminal to find go/bin
directory:
echo `go env GOPATH`/bin
brew tap mandriota/mandriota
brew install what-anime-tui
npm i what-anime-tui
Config is read from $HOME/.config/wat/wat.toml
[appearance]
# Specifies background color by hex or ANSI value.
# Examples:
# background = "#0F0"
# background = "#FF006F"
# background = "6"
background = "6"
# Specifies foreground color by hex or ANSI value.
foreground = "15"
[appearance.border]
# Specifies border foreground color by hex or ANSI value.
foreground = "15"
# Warning: this configuration parameter is unstable and can be changed at any moment
[fetcher]
# API URL to fetch by image/gif URL, which will be passed in the link in place of {{ .Path }}
apiUrlByUrl = "https://api.trace.moe/search?anilistInfo&url={{ .Path }}"
# API URL to fetch by image/gif file, which will be passed in "image" field in multipart
apiUrlByFile = "https://api.trace.moe/search?anilistInfo"