Skip to content

Sahibjot01/pokedexcli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokidex CLI

Small CLI app for exploring and collecting Pokémon from the PokéAPI.

Repo organization (changed)

  • internal/cli — shared Config type used across the app
  • internal/commands — command implementations (Map, Mapb, Explore, Catch, Inspect, Pokedex, Exit)
  • repl.go, main.go — application entry and REPL
  • internal/pokeapi — API client (unchanged)

Prerequisites

  • Go 1.20+ (or recent Go toolchain)

Build & run

Build the binary:

go build -o pokidex

Run directly with go run:

go run .

The app opens a REPL. Type help to see available commands.

Some actions show a spinner and wait briefly on purpose so the terminal feels more animated:

  • map and mapb show a loading spinner while fetching locations
  • explore shows a loading spinner while fetching area encounters
  • catch shows a longer spinner so the catch attempt feels animated
  • exit shows a short save spinner before quitting

Commands

  • map — show next page of locations
  • mapb — show previous page of locations
  • explore <location> — explore a location for Pokémon
  • catch <pokemon> — attempt to catch a Pokémon
  • inspect <pokemon> — view details for a caught Pokémon
  • pokedex — list caught Pokémon
  • help — display this help
  • exit — save and quit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages