Overview
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.
Demo
Install
Binary
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.
View Image of Settings
Example usage
# Windows
.\poke-cli.exe pokemon charizard --types --abilities
# Unix
.\poke-cli pokemon vespiquen -t -a
Docker Image
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.
-i
: Interactive mode, keeps STDIN open for input.
-t
: Allocates a terminal (TTY) for a terminal-like session.
docker run --rm -i -t digitalghostdev/poke-cli:v0.9.1 <command> [subcommand] flag]
Go Install
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!
Usage
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 available │
│ version of the program │
│ │
│ AVAILABLE COMMANDS: │
│ pokemon Get details of a specific Pokémon │
│ types Get details of a specific typing │
╰──────────────────────────────────────────────────────╯
Roadmap
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.
Planned for Version 1.0.0
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.
-
move
: get data about a specific move.