/get_pokemon_type

A simple CLI that gets the Pokémon types. It was made to test Google Fire and Dockerfile builds.

Primary LanguagePython

get_pokemon_type

This simple program was made consuming the PokéAPI data.

Run as a CLI (powered by Google Fire)

To run as a CLI, install dependencies with the requirements.txt file and run the get_type method with the Pokémon name as an argument:

pip install -r requirements.txt

python get_pokemon_type get_type <name-of-the-pokemon>

Run with Docker

To run with Docker, build the docker image with the following command:

docker build . -t get_pokemon_type

Then run the image with the Pokémon name as an argument:

docker run get_pokemon_type <name-of-the-pokemon>