- Visit the latest release page
- Download and extract the binaries for your OS
- Open a terminal inside the extracted folder & run
pokesearch.exeas a command
pokesearch help- See information on all commandspokesearch config gen [genNumber]- Set a default gen for learnsets- Ex:
pokesearch config gen 4- Set default gen to IV
- Ex:
pokesearch config list- List configuration valuespokesearch 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
- Ex:
- Download Go
- Install Cobra with
go get -u github.com/spf13/cobra- To ensure
cobraworks in the command line, make sure$GOPATH/binis in your $PATH. You can check your $GOPATH by runninggo env GOPATH
- To ensure
- Edit the root command & initialization in
cmd/root.go - Edit commands in the
cmddirectory- 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 createa command, runcobra add create -p 'configCmd'
- Ex: To make
- To add a command, use
- Edit util functions in the
utildirectory - Run
go run main.go [..commands]test your commands
- Run
make build VERSION=#.#.#in Linux or WSL - Test the executables in
dist/#.#.#
- Cobra - CLI building
- Color - Colorized output
- Viper - CLI config building
- Other database sources
