

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 10
click for more info
Not enough gems
Cost: 6 gems
1: State
incomplete
2: PokeAPI
incomplete
3: Caching
incomplete
4: Explore
incomplete
5: Catch
incomplete
6: Inspect
incomplete
This lesson's interactive features are locked, please to keep using them
As we add more commands, the Pokedex needs more shared state. We'll keep that state in a config struct and pass it to every command callback.
This gives every command access to the same state and lets us extend the program without changing every callback again later.
The program should behave exactly as it did before. This is a refactor, so don't add a new command yet.
Run and submit the CLI tests from the root of the repo.