Repository files navigation Pokesearch
Command line tool for searching Pokemon information.
Visit the latest release page
Download and extract the binaries for your OS
Open a terminal inside the extracted folder & run pokesearch.exe as a command
pokesearch help - See information on all commands
pokesearch config gen [genNumber] - Set a default gen for learnsets
Ex: pokesearch config gen 4 - Set default gen to IV
pokesearch config list - List configuration values
pokesearch pokemon [pokemonName] [flags] - Search info for a specified Pokemon
Ex: pokesearch pokemon kadabra -elst -g 5
Get Bulbapedia links for Kadabra's Evolution, Gen V Learnset, Stats, and Type Effectiveness
🚀 Getting Started (Development)
Download Go
Install Cobra with go get -u github.com/spf13/cobra
To ensure cobra works in the command line, make sure $GOPATH/bin is in your $PATH. You can check your $GOPATH by running go env GOPATH
Edit the root command & initialization in cmd/root.go
Edit commands in the cmd directory
To add a command, use cobra add [command]
To add a subcommand with an existing command as a parent, use cobra add [newCmd] -p [parentCmd]Cmd
Ex: To make app config create a command, run cobra add create -p 'configCmd'
Edit util functions in the util directory
Run go run main.go [..commands] test your commands
Run make build VERSION=#.#.# in Linux or WSL
Test the executables in dist/#.#.#
✔️ Current Release Details
Cobra - CLI building
Color - Colorized output
Viper - CLI config building
About
🔎 Command line tool for searching Pokémon information.
Topics
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.