A CLI tool for viewing data about Pokémon from your terminal! I am new to writing Go and taking my time in building this project.
My aim is to have four commands finished for v1.0.0
. Read more in the Roadmap section.
Download a pre-built binary
- Head to the releases page of the project.
- Choose a version to download. The latest is best.
- Choose an operating system and click on the matching zipped folder to start the download.
- Extract the folder. The tool is ready to use.
- Either change directories into the extracted folder or move the binary to a chosen directory.
- Run the tool!
Important
For macOS, you may have to allow the executable to run as it is not signed. Head to System Settings > Privacy & Security > scroll down and allow executable to run.
# Windows
.\poke-cli.exe pokemon charizard --types --abilities
# Unix
.\poke-cli pokemon vespiquen -t -a
Use a Docker Image
- Install Docker Desktop.
- Once installed, use the command below to pull the image and run the container!
--rm
: Automatically remove the container when it exits.- Optional.
-i
: Interactive mode, keeps STDIN open for input.- Necessary.
-t
: Allocates a terminal (TTY) for a terminal-like session.- Necessary.
docker run --rm -i -t digitalghostdev/poke-cli:v0.9.2 <command> [subcommand] flag]
If you have Go already, install the executable yourself
- Run the following command:
go install github.com/digitalghost-dev/poke-cli@latest
- The tool is ready to use!
By running poke-cli [-h | --help]
, it'll display information on how to use the tool.
╭────────────────────────────────────────────────────────╮
│Welcome! This tool displays data related to Pokémon! │
│ │
│ USAGE: │
│ poke-cli [flag] │
│ poke-cli <command> [flag] │
│ poke-cli <command> <subcommand> [flag] │
│ │
│ FLAGS: │
│ -h, --help Shows the help menu │
│ -l, --latest Prints the latest version available │
│ -v, --version Prints the current version │
│ │
│ AVAILABLE COMMANDS: │
│ pokemon Get details of a specific Pokémon │
│ types Get details of a specific typing │
╰────────────────────────────────────────────────────────╯
The architecture behind how the tool works is straight forward.
- Commands indicate which data endpoint to focus on.
- Flags provide more information and can be all stacked together or chosen.
Not 100% up-to-date, may add or remove some of these choices
-
pokemon
: get data about a specific Pokémon.-
-a | --abilities
: display the Pokémon's abilities. -
-s | --stats
: display the Pokémon's base stats. -
-t | --types
: display the Pokémon's typing. -
-m | --moves
: display learnable moves.
-
-
types
: get data about a specific typing. -
ability
: get data about a specific ability.-
-p | --pokemon
: display Pokémon that learn this ability.
-
-
move
: get data about a specific move.-
-p | --pokemon
: display Pokémon that learn this move.
-