Small CLI app for exploring and collecting Pokémon from the PokéAPI.
internal/cli— sharedConfigtype used across the appinternal/commands— command implementations (Map, Mapb, Explore, Catch, Inspect, Pokedex, Exit)repl.go,main.go— application entry and REPLinternal/pokeapi— API client (unchanged)
- Go 1.20+ (or recent Go toolchain)
Build the binary:
go build -o pokidexRun 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:
mapandmapbshow a loading spinner while fetching locationsexploreshows a loading spinner while fetching area encounterscatchshows a longer spinner so the catch attempt feels animatedexitshows a short save spinner before quitting
map— show next page of locationsmapb— show previous page of locationsexplore <location>— explore a location for Pokémoncatch <pokemon>— attempt to catch a Pokémoninspect <pokemon>— view details for a caught Pokémonpokedex— list caught Pokémonhelp— display this helpexit— save and quit